A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::data::serializable_internal::HasJson Concept Reference

#include <cpp/a11/data/serializable.h>

Concept definition

template<typename T>
concept a11::data::serializable_internal::HasJson = requires(const T& value, const nlohmann::json& json) {
{A11ToJson(value)}->std::same_as<absl::StatusOr<nlohmann::json>>;
{A11FromJson(TypeTag<T>{}, json)}->std::same_as<absl::StatusOr<T>>;
}
Definition serializable.h:128
std::string value
Definition discover.cc:114
Empty tag carrying a type T so customization points are found by argument-dependent lookup even when ...
Definition serializable.h:86