23 template<
typename BinaryType>
54 bool operator==(
const byte_container_with_subtype& rhs)
const
56 return std::tie(
static_cast<const BinaryType&
>(*
this), m_subtype, m_has_subtype) ==
57 std::tie(
static_cast<const BinaryType&
>(rhs), rhs.m_subtype, rhs.m_has_subtype);
60 bool operator!=(
const byte_container_with_subtype& rhs)
const
62 return !(rhs == *
this);
133 return m_has_subtype;
158 m_has_subtype =
false;
163 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:155
constexpr bool has_subtype() const noexcept
return whether the value has a subtype
Definition: byte_container_with_subtype.hpp:131
void set_subtype(std::uint8_t subtype) noexcept
sets the binary subtype
Definition: byte_container_with_subtype.hpp:83
constexpr std::uint8_t subtype() const noexcept
return the binary subtype
Definition: byte_container_with_subtype.hpp:110
zip_uint8_t uint8_t
zip_uint8_t typedef.
Definition: zip.hpp:78
namespace for Niels Lohmann
Definition: adl_serializer.hpp:9