All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
nlohmann::detail::to_json_fn Struct Reference

#include <json.hpp>

Public Member Functions

template<typename BasicJsonType , typename T >
auto operator() (BasicJsonType &j, T &&val) const noexcept(noexcept(to_json(j, std::forward< T >(val)))) -> decltype(to_json(j, std::forward< T >(val)), void())
 

Detailed Description

Definition at line 3775 of file json.hpp.

Member Function Documentation

template<typename BasicJsonType , typename T >
auto nlohmann::detail::to_json_fn::operator() ( BasicJsonType &  j,
T &&  val 
) const -> decltype(to_json(j, std::forward<T>(val)), void())
inlinenoexcept

Definition at line 3778 of file json.hpp.

3780  {
3781  return to_json(j, std::forward<T>(val));
3782  }
void to_json(BasicJsonType &j, T b) noexcept
Definition: json.hpp:3647

The documentation for this struct was generated from the following file: