I have a text, in "key:value" format. The actual text may look like, "Server: nginx" or "Server:nginx" ignoring the whitespaces between the key, : and value.
What could be the fastest and shortest way to split this into a std::pair<std::string, std::string>?
 
     
     
     
    