If the buffer is cleared when flushed, the class does not function correctly as a string builder. For example, if a string is built with a newline inside, everything before the newline will be cleared and the string will be incomplete. Clearing the buffer on flush only makes sense for applications such as logging or writting to a file.
mtl
C++ STL replacement, intended for embedded systems. Aims to be more performant than ETL.
Description
Languages
C++
84.8%
Assembly
12.8%
CMake
2.4%