A type for representing the suffix of data_source name.
More...
#include <prefix.hpp>
|
| constexpr | suffix_t (const char *value) noexcept |
| | Initializing constructor.
|
| |
| constexpr const char * | c_str () const noexcept |
| | Access to suffix value.
|
| |
| constexpr std::string_view | as_string_view () const noexcept(noexcept(std::string_view{std::declval< const char * >()})) |
| | Access to prefix value as string_view.
|
| |
| constexpr bool | operator== (const suffix_t &o) const noexcept |
| | Compares suffixes by pointer values.
|
| |
| constexpr bool | operator!= (const suffix_t &o) const noexcept |
| | Compares suffixes by pointer value.
|
| |
| constexpr bool | operator< (const suffix_t &o) const noexcept |
| | Compares suffixes by pointer value.
|
| |
A type for representing the suffix of data_source name.
- Note
- This is just a wrapper around
const char *.
- Attention
- It's assumed that suffix_t holds a pointer to a string in static memory (it's a pointer to a string literal).
- Since
- v.5.5.4
Definition at line 155 of file prefix.hpp.
◆ suffix_t()
| so_5::stats::suffix_t::suffix_t |
( |
const char * | value | ) |
|
|
inlineconstexprnoexcept |
Initializing constructor.
- Parameters
-
| value | Value. It's expected to be a pointer to a null-terminated string. |
Definition at line 159 of file prefix.hpp.
◆ as_string_view()
| std::string_view so_5::stats::suffix_t::as_string_view |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Access to prefix value as string_view.
- Since
- v.5.8.2
Definition at line 179 of file prefix.hpp.
◆ c_str()
| const char * so_5::stats::suffix_t::c_str |
( |
| ) |
const |
|
inlinenodiscardconstexprnoexcept |
Access to suffix value.
Definition at line 168 of file prefix.hpp.
◆ operator!=()
| bool so_5::stats::suffix_t::operator!= |
( |
const suffix_t & | o | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Compares suffixes by pointer value.
Definition at line 195 of file prefix.hpp.
◆ operator<()
| bool so_5::stats::suffix_t::operator< |
( |
const suffix_t & | o | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Compares suffixes by pointer value.
Definition at line 202 of file prefix.hpp.
◆ operator==()
| bool so_5::stats::suffix_t::operator== |
( |
const suffix_t & | o | ) |
const |
|
inlinenodiscardconstexprnoexcept |
Compares suffixes by pointer values.
Definition at line 187 of file prefix.hpp.
◆ m_value
| const char* so_5::stats::suffix_t::m_value |
|
private |
The documentation for this class was generated from the following file: