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_non_default_from_json< BasicJsonType, T > Struct Template Reference

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

Definition at line 491 of file json.hpp.

Static Public Attributes

static constexpr bool value
 

Static Private Member Functions

template<typename U , typename = enable_if_t<std::is_same< T, decltype(uncvref_t<U>::from_json(std::declval<BasicJsonType>()))>::value >>
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 = enable_if_t<std::is_same< T, decltype(uncvref_t<U>::from_json(std::declval<BasicJsonType>()))>::value >>
static int nlohmann::detail::has_non_default_from_json< BasicJsonType, T >::detect ( U &&  )
staticprivate

◆ detect() [2/2]

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

Member Data Documentation

◆ value

template<typename BasicJsonType , typename T >
constexpr bool nlohmann::detail::has_non_default_from_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 502 of file json.hpp.


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