Agora  1.2.0
Agora project
nlohmann::json_v3_11_1NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON Namespace Reference

Namespaces

 detail
 detail namespace with internal helper functions
 
 detail2
 
 literals
 
 json_literals
 

Classes

struct  adl_serializer
 default JSONSerializer template argument More...
 
class  basic_json
 a class to store JSON values More...
 
class  byte_container_with_subtype
 an internal type for a backed binary type More...
 
class  json_pointer
 JSON Pointer defines a string syntax for identifying a specific value within a JSON document. More...
 
struct  json_sax
 SAX interface. More...
 
struct  ordered_map
 a minimal map-like container that preserves insertion order More...
 
struct  would_call_std_begin
 
struct  would_call_std_end
 

Typedefs

using json = basic_json<>
 default specialization More...
 
using ordered_json = basic_json< nlohmann::ordered_map >
 specialization that maintains the insertion order of object keys More...
 

Functions

template<typename RefStringTypeLhs , typename RefStringTypeRhs >
bool operator== (json_pointer< RefStringTypeLhs > const &lhs, json_pointer< RefStringTypeRhs > const &rhs) noexcept
 
template<typename RefStringTypeLhs , typename RefStringTypeRhs >
bool operator!= (json_pointer< RefStringTypeLhs > const &lhs, json_pointer< RefStringTypeRhs > const &rhs) noexcept
 
template<template< typename, typename, typename... > class ObjectType, template< typename, typename... > class ArrayType, class StringType , class BooleanType , class NumberIntegerType , class NumberUnsignedType , class NumberFloatType , template< typename > class AllocatorType, template< typename, typename=void > class JSONSerializer, class BinaryType >
std::string to_string (const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &j)
 user-defined to_string function for JSON values More...
 
nlohmann::json operator""_json (const char *s, std::size_t n)
 user-defined string literal for JSON values More...
 
nlohmann::json::json_pointer operator""_json_pointer (const char *s, std::size_t n)
 user-defined string literal for JSON pointer More...
 

Detailed Description

namespace to hold default to_json function to see why this is required: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4381.html

Typedef Documentation

◆ json

◆ ordered_json

Function Documentation

◆ operator!=()

template<typename RefStringTypeLhs , typename RefStringTypeRhs >
bool nlohmann::json_v3_11_1NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON::operator!= ( json_pointer< RefStringTypeLhs > const &  lhs,
json_pointer< RefStringTypeRhs > const &  rhs 
)
inlinenoexcept
Parameters
[in]lhsJSON pointer to compare
[in]rhsJSON pointer to compare
Returns
whether lhs is not equal rhs

@complexity Linear in the length of the JSON pointer

@exceptionsafety No-throw guarantee: this function never throws exceptions.

◆ operator==()

template<typename RefStringTypeLhs , typename RefStringTypeRhs >
bool nlohmann::json_v3_11_1NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON::operator== ( json_pointer< RefStringTypeLhs > const &  lhs,
json_pointer< RefStringTypeRhs > const &  rhs 
)
inlinenoexcept
Parameters
[in]lhsJSON pointer to compare
[in]rhsJSON pointer to compare
Returns
whether lhs is equal to rhs

@complexity Linear in the length of the JSON pointer

@exceptionsafety No-throw guarantee: this function never throws exceptions.

Here is the caller graph for this function:

◆ to_string()

template<template< typename, typename, typename... > class ObjectType, template< typename, typename... > class ArrayType, class StringType , class BooleanType , class NumberIntegerType , class NumberUnsignedType , class NumberFloatType , template< typename > class AllocatorType, template< typename, typename=void > class JSONSerializer, class BinaryType >
std::string nlohmann::json_v3_11_1NLOHMANN_JSON_ABI_TAG_LEGACY_DISCARDED_VALUE_COMPARISON::to_string ( const basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType > &  j)

user-defined to_string function for JSON values

See also
https://json.nlohmann.me/api/basic_json/to_string/