XLE  v0.02.0
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Utility::StringMeld< Count, CharType > Class Template Reference

Dynamic string formatting utility More...

#include <StringFormat.h>

Public Member Functions

 operator const CharType * () const
 
const CharType * get () const
 
StringSection< CharType > AsStringSection () const
 
 operator StringSection< CharType > () const
 

Public Attributes

std::ostream _stream
 

Protected Member Functions

 StringMeld (const StringMeld &)
 
StringMeldoperator= (const StringMeld &)
 

Protected Attributes

Internal::FixedMemoryBuffer< Count *sizeof(CharType)> _buffer
 

Detailed Description

template<int Count, typename CharType = char>
class Utility::StringMeld< Count, CharType >

Dynamic string formatting utility

StringMeld provides a simple and handy method to build a string using operator<<. StringMeld never allocates. It just has a fixed size buffer. So this is a handy way to build a string in a way that is type-safe, convenient and avoids any allocations.

@code
window.SetTitle(StringMeld<128>() << "XLE sample [RenderCore: " << v.first << ", " << v.second << "]");
\endcode

The documentation for this class was generated from the following file: