Is there anything like this in Standard C++ / STL? Ideally it should be constructed like
fstring s = fstring(10);
I need to sometimes cons
Why not use std::basic_string from STL as a fixed string class?
You can use the constructor
basic_string( size_type _Count, value_type _Ch, const allocator_type& _Al = Allocator ( ) );
as initializer.
Later edit: Example:
std::string my10CharStringInitializedWithSpace( 10, ' ');