JSON for Modern C++  3.10.2

◆ set_subtype()

template<typename BinaryType >
void nlohmann::byte_container_with_subtype< BinaryType >::set_subtype ( subtype_type  subtype_)
inlinenoexcept

Sets the binary subtype of the value, also flags a binary JSON value as having a subtype, which has implications for serialization.

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

Definition at line 5093 of file json.hpp.