cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
Loading...
Searching...
No Matches
setting.h File Reference
#include <string_view>
#include "cppfig/traits.h"
#include "cppfig/validator.h"
Include dependency graph for setting.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cppfig
 C++20 compile-time type-safe configuration library.
 

Concepts

concept  cppfig::IsSetting
 Concept for valid setting types.
 
concept  cppfig::HasEnvOverride
 Concept for settings with environment variable override.
 
concept  cppfig::HasValidator
 Concept for settings with custom validator.
 

Functions

template<IsSetting S>
constexpr auto cppfig::GetEnvOverride () -> std::string_view
 Helper to get environment override for a setting (empty if not defined).
 
template<IsSetting S>
auto cppfig::GetSettingValidator () -> Validator< typename S::value_type >
 Helper to get validator for a setting (always-valid if not defined).