nlohmann::basic_json<>::basic_json

create a JSON value from compatible types

Synopsis

Declared in <nlohmann/json.hpp>
template<
    typename CompatibleType,
    typename U = detail::uncvref_t<CompatibleType>>
requires !detail::is_basic_json<U>::value && detail::is_compatible_type<basic_json_t, U>::value
basic_json(CompatibleType&& val) noexcept(noexcept(JSONSerializer<U, void>::to_json(std::declval<basic_json_t &>(), std::forward<CompatibleType>(val))));


Parameters

Name Description
val The object to move construct from

Created with MrDocs