Sorry. i do not know how to ask this question, so i will give a example.
- Get the arg string from the command line Example: MyProgram.exe -logs=yes -console=no - CmdLine CmdLine( ::GetCommandLine() ); // Get arg string.
- When i have the arg string. i wish to look for "logs" ("yes") and "console" get its value ("no"). - CmdLine.GetKey["logs"].GetValue(); // Get the value of "logs". CmdLine.GetKey["console"].AsBool(); // Get the value of "console".
I have to overload the [] operator ( void operator[] ( const std::string & str ); )
 GetKey["logs"]; // okay.
But i do not know how or if i can in C++ to do something like;
CmdLine.GetKey["console"].MyFunction();  // HOW to do this?
How can i tell "GetKey" to call "MyFunction(). (sorry for bad wording. but i do not know know what this is called.
Thank you for patients and help and ideas.
EDIT:
Sorry for confusion!
 CmdLine.GetKey["logs"].GetValue(); // Example!!!
- I overload the [] so i can look up "logs" in a std::map, std::unordered_map (whatever). 
- When i find "logs" i wish for "GetKey["logs"]" to call "GetValue()" and return the value. I do know know what this is called when i do this; - Func().SomeFunc().SomeOtherFunc(); 
Because i want to do the example i tried to explain.
 
    