C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::json_serializable Concept Reference

Concept definition

template<typename T>
concept essence::json_serializable = requires(const json& json, T& value) {
{ json.get<T>() } -> std::same_as<T>;
json.get_to(value);
essence::json(value);
}
namespace for Niels Lohmann
Definition json.hpp:19415
auto get() const noexcept(noexcept(std::declval< const basic_json_t & >().template get_impl< ValueType >(detail::priority_tag< 4 > {}))) -> decltype(std::declval< const basic_json_t & >().template get_impl< ValueType >(detail::priority_tag< 4 > {}))
get a (pointer) value (explicit)
Definition json.hpp:21060
Definition json_compat.hpp:43