JSON for Modern C++  3.7.0

◆ ~basic_json()

template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > 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 U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer>
nlohmann::basic_json::~basic_json ( )
inlinenoexcept

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 16318 of file json.hpp.