void set_subtype(subtype_type subtype) noexcept;
Sets the binary subtype of the value, also flags a binary JSON value as having a subtype, which has implications for serialization.
subtype
(in) : subtype to set
No-throw guarantee: this function never throws exceptions.
Constant.
??? example
The example below demonstrates how a subtype can be set with `set_subtype`. ```cpp --8<-- "examples/byte_container_with_subtype__set_subtype.cpp" ``` Output: ```json --8<-- "examples/byte_container_with_subtype__set_subtype.output" ```
Since version 3.8.0.