I have a requirement like this: I have a string like "-myArg:ArgVal".
std::string strArg = "-myArg:ArgVal";
Now, I have to check in above string first character is always '-' and if first character is '-' i should remove it and i should store "myArg" and "ArgVal" in two different string objects.
How can I do this efficiently?