I am facing a situation where I would like to give a std::string
a size, but without filling it with characters.
Unfortunatly, no constructor allow to do that, and the only function to set the size of std::string
, called resize(size_t size, char n)
also require a character to fill the std::string
..
Is there any way to do this?
It's probably going to be a no, but I would like to be sure I didn't miss anything, or if they are any alternative means to do it.
Thanks in advance.