If C the delimiters can be replaced by Nulls and map of char* -> char* with a comparison function would work.
I am trying to figure out the fastest possible way to do this in Modern C++ . The idea is to avoid Copying characters in the Map.
std::string sample_string("name=alpha;title=something;job=nothing"); to std::map sample_map;
Without copying characters.
Aucun commentaire:
Enregistrer un commentaire