21template<
typename BinaryType>
59 return std::tie(
static_cast<const BinaryType&
>(*
this), m_subtype, m_has_subtype) ==
60 std::tie(
static_cast<const BinaryType&
>(rhs), rhs.m_subtype, rhs.m_has_subtype);
65 return !(rhs == *
this);
80 return m_has_subtype ? m_subtype :
static_cast<subtype_type>(-1);
95 m_has_subtype =
false;
100 bool m_has_subtype =
false;
#define WPI_JSON_NAMESPACE_END
Definition: abi_macros.h:59
#define WPI_JSON_NAMESPACE_BEGIN
Definition: abi_macros.h:53
an internal type for a backed binary type
Definition: byte_container_with_subtype.h:23
bool operator!=(const byte_container_with_subtype &rhs) const
Definition: byte_container_with_subtype.h:63
byte_container_with_subtype() noexcept(noexcept(container_type()))
Definition: byte_container_with_subtype.h:29
std::uint64_t subtype_type
Definition: byte_container_with_subtype.h:26
bool operator==(const byte_container_with_subtype &rhs) const
Definition: byte_container_with_subtype.h:57
BinaryType container_type
Definition: byte_container_with_subtype.h:25
byte_container_with_subtype(container_type &&b, subtype_type subtype_) noexcept(noexcept(container_type(std::move(b))))
Definition: byte_container_with_subtype.h:51
byte_container_with_subtype(container_type &&b) noexcept(noexcept(container_type(std::move(b))))
Definition: byte_container_with_subtype.h:39
constexpr subtype_type subtype() const noexcept
return the binary subtype
Definition: byte_container_with_subtype.h:78
byte_container_with_subtype(const container_type &b, subtype_type subtype_) noexcept(noexcept(container_type(b)))
Definition: byte_container_with_subtype.h:44
constexpr bool has_subtype() const noexcept
return whether the value has a subtype
Definition: byte_container_with_subtype.h:85
byte_container_with_subtype(const container_type &b) noexcept(noexcept(container_type(b)))
Definition: byte_container_with_subtype.h:34
void set_subtype(subtype_type subtype_) noexcept
sets the binary subtype
Definition: byte_container_with_subtype.h:70
void clear_subtype() noexcept
clears the binary subtype
Definition: byte_container_with_subtype.h:92