![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
A const 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 | 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 | const_inline_string_reference (inline_string< MaxSize > const &str) noexcept |
| Construct a const reference to the supplied inline_string. | |
| constexpr | const_inline_string_reference (inline_string_reference const &ref) noexcept |
| Construct a const reference out of a non-const one. | |
| 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 const & |
Retrieve the index -th character in the string. | |
| constexpr auto | back () const noexcept -> detail::character const & |
| Get the last character in the string. | |
| constexpr auto | begin () const noexcept -> const_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. | |
| 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 -> const_iterator |
| The one-past-the-last position in the string. | |
| constexpr auto | front () const noexcept -> detail::character const & |
| Get the first character in the string. | |
| ARENE_NODISCARD constexpr auto | operator[] (size_type const index) const noexcept -> detail::character const & |
Retrieve the index -th character in the 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 (const_inline_string_reference const lhs, const_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 (const_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 (const_inline_string_reference const lhs, string_view const rhs) noexcept -> strong_ordering |
| Compare two strings for lexicographical ordering, forwarded to string_view's. | |
A const reference class to an inline_string object, with size-erased type.
| using arene::base::const_inline_string_reference::const_iterator = string_base::const_iterator |
The type of a const iterator at the base class.
| using arene::base::const_inline_string_reference::size_type = string_base::size_type |
The type of a size at the base class.
| using arene::base::const_inline_string_reference::string_base = inline_string_detail::inline_string_base |
The type of the base class.
|
inlineexplicitconstexprnoexcept |
Construct a const reference to the supplied inline_string.
| MaxSize | The maximum capacity of the string, not including the null terminator |
| str | Const reference to the inline_string |
|
inlineexplicitconstexprnoexcept |
Construct a const reference out of a non-const one.
| ref | The non-const reference class |
|
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 |
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 |
Get the first character in the string.
|
inlineconstexprnoexcept |
Retrieve the index -th character in the string.
| index | The index of the character to retrieve |
|
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 |
|
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.