Logo ROOT   6.14/05
Reference Guide
List of all members | Static Public Attributes | Static Private Member Functions | List of all members
nlohmann::detail::has_to_json< BasicJsonType, T > Struct Template Reference

template<typename BasicJsonType, typename T>
struct nlohmann::detail::has_to_json< BasicJsonType, T >

Definition at line 508 of file json.hpp.

Static Public Attributes

static constexpr bool value
 

Static Private Member Functions

template<typename U , typename = decltype(uncvref_t<U>::to_json( std::declval<BasicJsonType&>(), std::declval<T>()))>
static int detect (U &&)
 
static void detect (...)
 

#include </mnt/build/workspace/root-makedoc-v614/rootspi/rdoc/src/v6-14-00-patches/io/io/res/json.hpp>

Member Function Documentation

◆ detect() [1/2]

template<typename BasicJsonType , typename T >
template<typename U , typename = decltype(uncvref_t<U>::to_json( std::declval<BasicJsonType&>(), std::declval<T>()))>
static int nlohmann::detail::has_to_json< BasicJsonType, T >::detect ( U &&  )
staticprivate

◆ detect() [2/2]

template<typename BasicJsonType , typename T >
static void nlohmann::detail::has_to_json< BasicJsonType, T >::detect (   ...)
staticprivate

Member Data Documentation

◆ value

template<typename BasicJsonType , typename T >
constexpr bool nlohmann::detail::has_to_json< BasicJsonType, T >::value
static
Initial value:
= std::is_integral<decltype(detect(
std::declval<typename BasicJsonType::template json_serializer<T, void>>()))>::value

Definition at line 517 of file json.hpp.


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