Today I tried to learn a piece of code and I am stuck on this line.
std::vector<std::string(SomeClassInterface::*)()> ListOfFnPointers;
what is the meaning of this constructor std :: string? I went through, but I have no idea what that means.
It is used in code as
if (!ListOfFnPointers.empty()) { std::vector<std::string> StringList; for (auto Fn : ListOfFnPointers) { StringList.push_back((pSomeClassObj->*Fn)()); } ... }
- What does this declaration mean?
- What exactly does this function do with
pSomeClassObj->*Fn ?
source share