libconfig v2.1.0
Reflection based C++ configuration library
Loading...
Searching...
No Matches
fourdst::config::IsConfigSchema Concept Reference

Concept ensuring a type is suitable for configuration schema. More...

#include <base.h>

Concept definition

template<typename T>
std::is_class_v<std::decay_t<T>> &&
std::is_aggregate_v<std::decay_t<T>> &&
!std::same_as<std::decay_t<T>, std::string>
Concept ensuring a type is suitable for configuration schema.
Definition base.h:38

Detailed Description

Concept ensuring a type is suitable for configuration schema.

A valid configuration schema must be:

  • A class or struct (std::is_class_v)
  • An aggregate type (std::is_aggregate_v), i.e., strict POD-like structure without user-declared constructors.
  • Not a std::string.
Template Parameters
TThe type to check.