|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
#include <array>#include <cstddef>#include <string_view>#include <type_traits>#include "cppfig/setting.h"Go to the source code of this file.
Classes | |
| struct | cppfig::detail::IsOneOf< T, Types > |
| Helper to check if a type is in a parameter pack. More... | |
| class | cppfig::ConfigSchema< Settings > |
| Configuration schema holding all setting types. More... | |
Namespaces | |
| namespace | cppfig |
| C++20 compile-time type-safe configuration library. | |
| namespace | cppfig::detail |
Typedefs | |
| template<IsSetting S> | |
| using | cppfig::setting_value_type = typename S::value_type |
| Helper alias to get the value type for a setting. | |
Functions | |
| consteval auto | cppfig::detail::IsPathPrefix (std::string_view prefix, std::string_view path) -> bool |
Returns true if prefix names an ancestor of path. | |
| consteval auto | cppfig::detail::IsPathWellFormed (std::string_view path) -> bool |
Returns true if path is a non-empty dot-separated path with no empty segments. | |
| template<typename... Settings> | |
| consteval auto | cppfig::detail::AllPathsWellFormed () -> bool |
| Helper to check that every path is well-formed at compile time. | |
| template<typename... Settings> | |
| consteval auto | cppfig::detail::AllPathsUnique () -> bool |
| Helper to check if all paths are unique at compile time. | |