JSON for Modern C++  3.9.1

◆ set_subtype()

template<typename BinaryType >
void nlohmann::byte_container_with_subtype< BinaryType >::set_subtype ( std::uint8_t  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
subtype() – return the binary subtype
clear_subtype() – clears the binary subtype
has_subtype() – returns whether or not the binary value has a subtype
Since
version 3.8.0

Definition at line 4492 of file json.hpp.