1#ifndef STRINGSTORAGE_HH
2#define STRINGSTORAGE_HH
35 char* p = result.get();
std::unique_ptr< char, FreeStringStorage > StringStorage
StringStorage allocate_c_string(std::string_view s)
Allocate memory for and copy a c-string (zero-terminated string).
StringStorage allocate_string_storage(size_t size)
Allocate a 'StringStorage' large enough for 'size' characters.
constexpr auto copy(InputRange &&range, OutputIter out)
StringStorage: Acts like a 'const char*', but in addition calls free() when the pointer goes out of s...
void operator()(char *p) const