VISH
0.2
|
#include </home/werner/origo/vish/memcore/simplestring.hpp>
A simple, slow but exception-free class to store a string within exceptions. The standard std::string class must not be used in exception classes because it might throw exceptions itself, leading to program termination. This class should not be used in normal code, only within template classes. It is convertible to std::strings.
This class does NOT do reference counting. All strings are copied.
char * MemCore::simplestring::allocate_buffer | ( | size_t | howmany_bytes | ) | throw () |
Allocate internal storage space, but don't initialize it.
Removes anything stored here so far.