JSON for Modern C++  3.0.0

◆ ~basic_json()

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>
nlohmann::basic_json::~basic_json ( )
inline

Destroys the JSON value and frees all allocated memory.

Complexity
Linear.
Requirements
This function helps basic_json satisfying the Container requirements:
  • The complexity is linear.
  • All stored elements are destroyed and all memory is freed.
Since
version 1.0.0

Definition at line 9009 of file json.hpp.