#includeIn this example, we define an enumeration `TokenType` to represent the different types of tokens that our lexer can recognize. We then define a `Token` struct to hold the type and value of a token. Finally, we define the `getType` function, which simply returns the `type` field of a `Token` object. In the `main` function, we create a `Token` object with a `PLUS` type, and pass it to the `getType` function to retrieve its type. We then print the result to the console. The package library for this code example is the standard C++ library.using namespace std; enum TokenType { INTEGER, PLUS, MINUS, MULTIPLY, DIVIDE, }; struct Token { TokenType type; int value; }; TokenType getType(Token token) { return token.type; } int main() { Token t = {PLUS, 0}; cout << getType(t) << endl; return 0; }