#include #include "uCalc.h" using namespace std; using namespace uCalcSoftware; #define tf(IsTrue) ((IsTrue) ? "True" : "False") int main() { uCalc uc; auto tokens = uc.ExpressionTokens(); // There is only one Alphanumeric token, so index 1 is out of bounds. auto outOfBoundsToken = tokens.ByType(TokenType::AlphaNumeric, 1); cout << "Is token empty? " << tf(outOfBoundsToken.IsEmpty()) << endl; cout << "Was token found? " << tf(not outOfBoundsToken.IsProperty(ItemIs::NotFound)) << endl; }