mirror of
https://github.com/nlohmann/json.git
synced 2025-07-29 23:01:16 +03:00
Updated comments as requested.
This commit is contained in:
@ -20,7 +20,7 @@ struct adl_serializer
|
|||||||
This function is usually called by the `get()` function of the
|
This function is usually called by the `get()` function of the
|
||||||
@ref basic_json class (either explicit or via conversion operators).
|
@ref basic_json class (either explicit or via conversion operators).
|
||||||
|
|
||||||
@note This function is chosen for value types which can be default constructed.
|
@note This function is chosen for default-constructible value types.
|
||||||
|
|
||||||
@param[in] j JSON value to read from
|
@param[in] j JSON value to read from
|
||||||
@param[in,out] val value to write to
|
@param[in,out] val value to write to
|
||||||
@ -39,7 +39,7 @@ struct adl_serializer
|
|||||||
This function is usually called by the `get()` function of the
|
This function is usually called by the `get()` function of the
|
||||||
@ref basic_json class (either explicit or via conversion operators).
|
@ref basic_json class (either explicit or via conversion operators).
|
||||||
|
|
||||||
@note This function is chosen for value types which can not be default constructed.
|
@note This function is chosen for value types which are not default-constructible.
|
||||||
|
|
||||||
@param[in] j JSON value to read from
|
@param[in] j JSON value to read from
|
||||||
|
|
||||||
|
@ -149,6 +149,7 @@ struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
|
|||||||
///////////////////
|
///////////////////
|
||||||
// is_ functions //
|
// is_ functions //
|
||||||
///////////////////
|
///////////////////
|
||||||
|
|
||||||
// https://en.cppreference.com/w/cpp/types/conjunction
|
// https://en.cppreference.com/w/cpp/types/conjunction
|
||||||
template<class...> struct conjunction : std::true_type { };
|
template<class...> struct conjunction : std::true_type { };
|
||||||
template<class B1> struct conjunction<B1> : B1 { };
|
template<class B1> struct conjunction<B1> : B1 { };
|
||||||
|
@ -3185,6 +3185,7 @@ struct has_to_json < BasicJsonType, T, enable_if_t < !is_basic_json<T>::value >>
|
|||||||
///////////////////
|
///////////////////
|
||||||
// is_ functions //
|
// is_ functions //
|
||||||
///////////////////
|
///////////////////
|
||||||
|
|
||||||
// https://en.cppreference.com/w/cpp/types/conjunction
|
// https://en.cppreference.com/w/cpp/types/conjunction
|
||||||
template<class...> struct conjunction : std::true_type { };
|
template<class...> struct conjunction : std::true_type { };
|
||||||
template<class B1> struct conjunction<B1> : B1 { };
|
template<class B1> struct conjunction<B1> : B1 { };
|
||||||
@ -4568,7 +4569,7 @@ struct adl_serializer
|
|||||||
This function is usually called by the `get()` function of the
|
This function is usually called by the `get()` function of the
|
||||||
@ref basic_json class (either explicit or via conversion operators).
|
@ref basic_json class (either explicit or via conversion operators).
|
||||||
|
|
||||||
@note This function is chosen for value types which can be default constructed.
|
@note This function is chosen for default-constructible value types.
|
||||||
|
|
||||||
@param[in] j JSON value to read from
|
@param[in] j JSON value to read from
|
||||||
@param[in,out] val value to write to
|
@param[in,out] val value to write to
|
||||||
@ -4587,7 +4588,7 @@ struct adl_serializer
|
|||||||
This function is usually called by the `get()` function of the
|
This function is usually called by the `get()` function of the
|
||||||
@ref basic_json class (either explicit or via conversion operators).
|
@ref basic_json class (either explicit or via conversion operators).
|
||||||
|
|
||||||
@note This function is chosen for value types which can not be default constructed.
|
@note This function is chosen for value types which are not default-constructible.
|
||||||
|
|
||||||
@param[in] j JSON value to read from
|
@param[in] j JSON value to read from
|
||||||
|
|
||||||
|
@ -136,6 +136,7 @@ struct NotSerializableData
|
|||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
// for #2574
|
// for #2574
|
||||||
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
struct NonDefaultConstructible
|
struct NonDefaultConstructible
|
||||||
{
|
{
|
||||||
explicit NonDefaultConstructible (int x) : x(x) { }
|
explicit NonDefaultConstructible (int x) : x(x) { }
|
||||||
|
Reference in New Issue
Block a user