garlic::basic_text< Ch, SizeType > Class Template Reference

A container for storing small strings that can either act as a view or as an owner. More...

#include <containers.h>

Detailed Description

template<typename Ch, typename SizeType = unsigned>
class garlic::basic_text< Ch, SizeType >

A container for storing small strings that can either act as a view or as an owner.

text view = "Some Text"; // only a view.
text owner = text::copy("Some Text"); // copies the string.
view.is_view(); // true
owners.is_view(); // false
text clone = view.clone(); // copies the string.
clone.is_view(); // false

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