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>
concept fourdst::config::IsConfigSchema =
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>
fourdst::config::IsConfigSchema
Concept ensuring a type is suitable for configuration schema.
Definition base.h:40

## 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

  T | The type to check.