Project

General

Profile

Template
std Namespace Reference

Classes

struct  hash< nlohmann::NLOHMANN_BASIC_JSON_TPL >
 hash value for JSON objects More...
 
struct  less< ::nlohmann::detail::value_t >
 
class  tuple_element< N, ::nlohmann::detail::iteration_proxy_value< IteratorType > >
 
class  tuple_size<::nlohmann::detail::iteration_proxy_value< IteratorType > >
 

Functions

NLOHMANN_BASIC_JSON_TPL_DECLARATION void swap (nlohmann::NLOHMANN_BASIC_JSON_TPL &j1, nlohmann::NLOHMANN_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression) is_nothrow_move_assignable< nlohmann::NLOHMANN_BASIC_JSON_TPL >::value)
 exchanges the values of two JSON objects
 

Function Documentation

◆ swap()

NLOHMANN_BASIC_JSON_TPL_DECLARATION void std::swap ( nlohmann::NLOHMANN_BASIC_JSON_TPL &  j1,
nlohmann::NLOHMANN_BASIC_JSON_TPL &  j2 
)
inlinenoexcept

exchanges the values of two JSON objects

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

Definition at line 24452 of file json.hpp.