Is there anything like this in Standard C++ / STL? Ideally it should be constructed like
fstring s = fstring(10);
I need to sometimes cons
If I understand you correctly, you don't want to use std::string because you're worried it might silently expand on you. I see a couple of options:
std::string
Use a raw C-style string and the functions from cstdio that take a length argument (e.g., fgets).
cstdio
fgets
Use a std::vector.
std::vector