#include <boundedstring.h>
Collaboration diagram for Bounded::BoundedString< N, T >:
Automatic conversion operator to a string is supported, which allows an object of this class to be passed directly into most functions expecting a string. However, some overload ambiguities may remain. If so, explicit conversion to string can be used where needed, either at the usage point or by implementing the appropriate function here using such a conversion.
Definition at line 30 of file boundedstring.h.
Public Methods | |
BoundedString (const basic_string< T > &o) | |
void | operator= (const basic_string< T > &o) |
Assignment copies all characters up to the bound, then adds terminator. | |
bool | operator== (const char *o) const |
operator basic_string () const | |
Automatic conversion to type string. | |
const T * | c_str () const |
Returns a pointer to a C array of characters. |
|
Returns a pointer to a C array of characters. Unlike regular string, this pointer will remain valid for the entire lifetime of this object. Definition at line 49 of file boundedstring.h. |