51 :
name_(tag.name()) {}
65 [[nodiscard]]
constexpr auto name() const noexcept ->
std::string_view {
76 -> std::strong_ordering {
77 return this->
name().compare(right.name()) <=> 0;
88 return this->
name() == right.name();
Class of tags of logs without memory management.
constexpr auto operator<=>(const log_tag_view &right) const noexcept -> std::strong_ordering
Compare two tags.
constexpr log_tag_view(std::string_view name) noexcept
Constructor.
constexpr auto operator!=(const log_tag_view &right) const noexcept -> bool=default
Compare two tags.
log_tag_view(const log_tag &tag) noexcept
Construct (implicit conversion).
std::string_view name_
Name.
constexpr auto name() const noexcept -> std::string_view
Get the name of this tag.
constexpr auto operator==(const log_tag_view &right) const noexcept -> bool
Compare two tags.
Definition of log_tag class.