Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
std Namespace Reference

Classes

struct  hash< nlohmann::json >
 hash value for JSON objects More...
 
struct  less< ::nlohmann::detail::value_t >
 

Functions

template<>
void swap< nlohmann::json > (nlohmann::json &j1, nlohmann::json &j2) noexcept(is_nothrow_move_constructible< nlohmann::json >::value andis_nothrow_move_assignable< nlohmann::json >::value)
 exchanges the values of two JSON objects More...
 

Function Documentation

template<>
void std::swap< nlohmann::json > ( nlohmann::json j1,
nlohmann::json j2 
)
inlinenoexcept

exchanges the values of two JSON objects

Since
version 1.0.0

Definition at line 20203 of file json.hpp.

20207 {
20208  j1.swap(j2);
20209 }
void swap(reference other) noexcept(std::is_nothrow_move_constructible< value_t >::value andstd::is_nothrow_move_assignable< value_t >::value andstd::is_nothrow_move_constructible< json_value >::value andstd::is_nothrow_move_assignable< json_value >::value)
exchanges the values
Definition: json.hpp:17611