23template<
typename BinaryType>
56 bool operator==(
const byte_container_with_subtype& rhs)
const
58 return std::tie(
static_cast<const BinaryType&
>(*
this), m_subtype, m_has_subtype) ==
59 std::tie(
static_cast<const BinaryType&
>(rhs), rhs.m_subtype, rhs.m_has_subtype);
62 bool operator!=(
const byte_container_with_subtype& rhs)
const
64 return !(rhs == *
this);
136 return m_has_subtype;
161 m_has_subtype =
false;
166 bool m_has_subtype =
false;
an internal type for a backed binary type
Definition byte_container_with_subtype.hpp:25
BinaryType container_type
the type of the underlying container
Definition byte_container_with_subtype.hpp:28
void clear_subtype() noexcept
clears the binary subtype
Definition byte_container_with_subtype.hpp:158
constexpr bool has_subtype() const noexcept
return whether the value has a subtype
Definition byte_container_with_subtype.hpp:134
void set_subtype(subtype_type subtype_) noexcept
sets the binary subtype
Definition byte_container_with_subtype.hpp:85
constexpr subtype_type subtype() const noexcept
return the binary subtype
Definition byte_container_with_subtype.hpp:113
std::uint64_t subtype_type
the type of the subtype
Definition byte_container_with_subtype.hpp:30
namespace for Niels Lohmann
Definition adl_serializer.hpp:12