template<std::size_t N>
class string_buffer

A fixed-length string buffer with automatic conversion to/from std::string_view.

This is useful for managing fixed length arrays as if they were string-like. Typically used to avoid heap allocations, e.g. stack allocated structs used for messaging.

This is a higher level abstraction than std::array to provide more * string-specific features. The interface is a subset of std::string and std::string_view.