Classes | Typedefs | Functions
StringStorage.hh File Reference
#include <cstdlib>
#include <memory>
Include dependency graph for StringStorage.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  FreeStringStorage
 StringStorage: Acts like a 'const char*', but in addition calls free() when the pointer goes out of scope. More...


using StringStorage = std::unique_ptr< char, FreeStringStorage >


StringStorage allocate_string_storage (size_t size)
 Allocate a 'StringStorage' large enough for 'size' characters. More...

Typedef Documentation

◆ StringStorage

using StringStorage = std::unique_ptr<char, FreeStringStorage>

Definition at line 15 of file StringStorage.hh.

Function Documentation

◆ allocate_string_storage()

StringStorage allocate_string_storage ( size_t  size)

Allocate a 'StringStorage' large enough for 'size' characters.

Definition at line 20 of file StringStorage.hh.

References utf8::unchecked::size().

Referenced by make_string_storage(), and TemporaryString::TemporaryString().