AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::json::Mappable Concept Reference

Type which the JSON format maps. More...

#include <format.hpp>

Concept definition

template<typename T>
|| std::is_enum_v<anch::json::detail::MapperType<T>>
|| anch::Described<anch::json::detail::MapperType<T>>
Type described by an anch::Mapping specialization.
Definition mapping.hpp:66
Type which the JSON format maps.
Definition format.hpp:48
constexpr bool isPrimitive()
Check if type is a primitive JSON type.

Detailed Description

Type which the JSON format maps.

Its value type (the type itself, or the value type of std::optional , smart pointers, collections and maps, as for fields) is a primitive ( anch::json::isPrimitive ), an enumeration or a type described by an anch::Mapping<T> specialization ( anch::Described ). Types described by an external schema (Protobuf messages, Thrift structures) are not mapped: lists of codecs (anch-codec) select the codecs of their format.

Template Parameters
Tthe type
Since
0.3