30 #ifndef STRING_BUFFER_HPP
31 #define STRING_BUFFER_HPP
38 template<
typename T,
size_t CAPACITY>
66 constexpr const_pointer
c_str()
const {
67 return &the_data.front();
71 return &the_data.front();
74 constexpr value_type
front()
const {
92 constexpr const_iterator
begin()
const {
96 constexpr const_iterator
end()
const {
105 template<
size_t CAPACITY>
static constexpr value_type SENTINEL
constexpr size_type capacity() const
reference operator[](size_type i)
Returns one writable character.
constexpr bool empty() const
A statically allocated string buffer.
value_type operator[](size_type i) const
Returns one character.
constexpr const_iterator begin() const
std::array< value_type, CAPACITY > the_data
constexpr const_iterator end() const
constexpr value_type front() const
constexpr const_pointer c_str() const
const_pointer const_iterator