JSON for Modern C++
3.0.0
|
◆ clear()
template<template< typename, typename, typename... > class ObjectType = std::map, template< typename, typename... > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename > class AllocatorType = std::allocator, template< typename, typename=void > class JSONSerializer = adl_serializer>
Clears the content of a JSON value and resets it to the default value as if basic_json(value_t) would have been called with the current value type from type():
|