![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
A reference class to an inline_string object, with size-erased type. More...

Public Types | |
| using | const_iterator = string_base::const_iterator |
| The type of a const iterator at the base class. | |
| using | iterator = string_base::iterator |
| The type of an iterator at the base class. | |
| using | size_type = string_base::size_type |
| The type of a size at the base class. | |
| using | string_base = inline_string_detail::inline_string_base |
| The type of the base class. | |
Public Member Functions | |
| template<std::size_t MaxSize> | |
| constexpr | inline_string_reference (inline_string< MaxSize > &str) noexcept |
| Construct a reference to the supplied inline_string. | |
| constexpr auto | append (size_type const count, detail::character const chr) const noexcept -> inline_string_reference const & |
| Append the specified number of copies of a character to the string. | |
| constexpr auto | append (string_view const rhs) const noexcept -> inline_string_reference const & |
| Append a string to the current string. | |
| constexpr auto | assign (string_view const rhs) const noexcept -> inline_string_reference const & |
| Assign from a string_view. | |
| template<bool AreExceptionsEnabled = detail::are_exceptions_enabled::value, constraints< std::enable_if_t< AreExceptionsEnabled > > = nullptr> | |
| constexpr auto | at (size_type const index) const -> detail::character & |
Retrieve the index -th character in the string. | |
| constexpr auto | back () const noexcept -> detail::character & |
| Get the last character in the string. | |
| constexpr auto | begin () const noexcept -> iterator |
| Return an iterator to the first position in the string. | |
| ARENE_NODISCARD constexpr auto | c_str () const noexcept -> detail::raw_c_string |
Return a pointer to the NUL-terminated string held in *this. | |
| constexpr auto | capacity () const noexcept -> size_type |
| The maximum length of the string. | |
| constexpr auto | const_operations_ptr (inline_string_reference_detail::ref_passkey) const noexcept -> inline_string_reference_detail::const_operations const * |
| Get a pointer to the struct holding const operation implementations. | |
| ARENE_NODISCARD constexpr auto | data () const noexcept -> detail::raw_c_string |
Return a pointer to the NUL-terminated string held in *this. | |
| constexpr auto | empty () const noexcept -> bool |
| Check if the string is empty. | |
| constexpr auto | end () const noexcept -> iterator |
| The one-past-the-last position in the string. | |
| constexpr auto | erase (const_iterator const first, const_iterator const last) const noexcept -> iterator |
| Erase the characters in the specified range. | |
| constexpr auto | erase (size_type const pos, size_type const count) const noexcept -> inline_string_reference const & |
| Erase the specified number of characters in the string starting at the specified position. | |
| constexpr auto | front () const noexcept -> detail::character & |
| Get the first character in the string. | |
| constexpr auto | get_string_ptr (inline_string_reference_detail::ref_passkey) const noexcept -> inline_string_detail::inline_string_base * |
| Get a pointer to the underlying string object pointer. | |
| constexpr auto | operator+= (detail::character const rhs) const noexcept -> inline_string_reference const & |
| Append a character to the current string. | |
| constexpr auto | operator+= (string_view const rhs) const noexcept -> inline_string_reference const & |
| Append a string to the current string. | |
| ARENE_NODISCARD constexpr auto | operator[] (size_type const index) const noexcept -> detail::character & |
Retrieve the index -th character in the string. | |
| constexpr auto | push_back (detail::character const rhs) const noexcept -> inline_string_reference const & |
| Append a character to the current string. | |
| constexpr auto | push_back (string_view const rhs) const noexcept -> inline_string_reference const & |
| Append a string to the current string. | |
| constexpr auto | size () const noexcept -> size_type |
| Get the length of the string. | |
| constexpr auto | to_string_view () const noexcept -> string_view |
| Convert to string view. | |
Static Public Member Functions | |
| static ARENE_NODISCARD constexpr auto | three_way_compare (inline_string_reference const lhs, inline_string_reference const rhs) noexcept -> strong_ordering |
| Compare two strings for lexicographical ordering, forwarded to string_view's. | |
| static ARENE_NODISCARD constexpr auto | three_way_compare (inline_string_reference const lhs, string_view const rhs) noexcept -> strong_ordering |
| Compare two strings for lexicographical ordering, forwarded to string_view's. | |
A reference class to an inline_string object, with size-erased type.
| using arene::base::inline_string_reference::const_iterator = string_base::const_iterator |
The type of a const iterator at the base class.
| using arene::base::inline_string_reference::iterator = string_base::iterator |
The type of an iterator at the base class.
| using arene::base::inline_string_reference::size_type = string_base::size_type |
The type of a size at the base class.
| using arene::base::inline_string_reference::string_base = inline_string_detail::inline_string_base |
The type of the base class.
|
inlineexplicitconstexprnoexcept |
Construct a reference to the supplied inline_string.
| MaxSize | The maximum capacity of the string, not including the null terminator |
| str | Reference to the inline_string |
|
inlineconstexprnoexcept |
Append the specified number of copies of a character to the string.
| count | The number of characters to append |
| chr | The character to append |
|
inlineconstexprnoexcept |
Append a string to the current string.
| rhs | The string to append |
|
inlineconstexprnoexcept |
|
inlineconstexpr |
Retrieve the index -th character in the string.
| AreExceptionsEnabled | Used to disable this overload if exceptions are not enabled. |
| index | The index of the character to retrieve |
|
inlineconstexprnoexcept |
Get the last character in the string.
|
inlineconstexprnoexcept |
Return an iterator to the first position in the string.
end() otherwise
|
inlineconstexprnoexcept |
Return a pointer to the NUL-terminated string held in *this.
*this
|
inlineconstexprnoexcept |
The maximum length of the string.
MaxSize
|
inlineconstexprnoexcept |
Get a pointer to the struct holding const operation implementations.
|
inlineconstexprnoexcept |
Return a pointer to the NUL-terminated string held in *this.
*this
|
inlineconstexprnoexcept |
Check if the string is empty.
true if the string is empty, false otherwise
|
inlineconstexprnoexcept |
The one-past-the-last position in the string.
|
inlineconstexprnoexcept |
Erase the characters in the specified range.
| first | The start of the range |
| last | The end of the range |
end()
|
inlineconstexprnoexcept |
Erase the specified number of characters in the string starting at the specified position.
| pos | The position of the characters to remove. If pos>size() this is a noop. |
| count | The maximum number of characters to remove. |
|
inlineconstexprnoexcept |
Get the first character in the string.
|
inlineconstexprnoexcept |
Get a pointer to the underlying string object pointer.
|
inlineconstexprnoexcept |
Append a character to the current string.
| rhs | The character to append |
|
inlineconstexprnoexcept |
Append a string to the current string.
| rhs | The string to append |
|
inlineconstexprnoexcept |
Retrieve the index -th character in the string.
| index | The index of the character to retrieve |
|
inlineconstexprnoexcept |
Append a character to the current string.
| rhs | The character to append |
|
inlineconstexprnoexcept |
Append a string to the current string.
| rhs | The string to append |
|
inlineconstexprnoexcept |
Get the length of the string.
|
inlinestaticconstexprnoexcept |
Compare two strings for lexicographical ordering, forwarded to string_view's.
| lhs | The first string representation |
| rhs | The second string representation |
|
inlinestaticconstexprnoexcept |
Compare two strings for lexicographical ordering, forwarded to string_view's.
| lhs | The first string representation |
| rhs | The second string representation |
|
inlineconstexprnoexcept |
Convert to string view.