Possible Duplicate:
How do I tokenize a string in C++?
There are several possibilites to tokenize a std::string like strtok does it with C style strings. I found boost::tokenizer, getline, or a manual iteration through the string. But each of these possibilities differ from strtok because they all are not in place. They copy the characters to new strings (please correct me if one of my given possibility actually works different) while strtok doesn't need to allocate (at least from my view - internally it could possibly allocate memory) any memory.
Now I'm just curious if there is any way of realizing this behaviour for a std::string? I thought about accessing via data but it returns a const pointer.
Any ideas?