Is there anything like this in Standard C++ / STL? Ideally it should be constructed like
fstring s = fstring(10);
I need to sometimes cons
The closest approximation today is boost::array<char, 10>
Use e.g.
std::tr1::array<char, 10>
With ISO C++ +17 you can do this
#include <string_view>
......
char dataBuffer[BUFF_SIZE];
auto commandString = std::string_view{ dataBuffer };
......
C style character array?
char label[10] = "a string";