JSON for Modern C++ 3.10.3

◆ clear_subtype()

template<typename BinaryType >
void nlohmann::byte_container_with_subtype< BinaryType >::clear_subtype ( )
inlinenoexcept

Clears the binary subtype and flags the value as not having a subtype, which has implications for serialization; for instance MessagePack will prefer the bin family over the ext family.

Complexity
Constant.
Exception safety
No-throw guarantee: this member function never throws exceptions.
See also
see subtype() – return the binary subtype
see set_subtype() – sets the binary subtype
see has_subtype() – returns whether or not the binary value has a subtype
Since
version 3.8.0

Definition at line 5247 of file json.hpp.