Very simple output stream buffer that uses stack for small chunks of text and then allocates memory of the default buffer is too small.
More...
template<size_t OnStackSize = 128>
class cppcms::util::stackbuf< OnStackSize >
Very simple output stream buffer that uses stack for small chunks of text and then allocates memory of the default buffer is too small.
It is something like std::stringbuf with small string optimization, it also allows to access the memory without actually creating the string itself.
The template parameter defines how many characters should be allocated on stack by default before heap is used.