I want to remove specific characters from a char buffer. For example from "2011/05/10" I want "20110510". I want to do it in the most effective way. Please help.
std::string is made for maximum performance in mind by many experts. Best you can do is to create custom allocator for string based on some static memory pools, predefined size on stack...
It would be difficult to write your own code which will work better than the string class. So use it. Still if you want alternatives, use pointers and use c library functions to remove any characters from that pointer array.