Retrieved the list of all keywords in a settings.
{
template<
template<
typename...>
class List,
typename Settings>
struct keywords;
template<template<typename...> class List, typename Settings>
using keywords_t = typename keywords<List,Settings>::type;
}
constexpr auto keywords(rbr::settings< Opts... > const &s)
Retrieved the list of all keywords in a settings.
Definition: keys_values.hpp:61
Raberu helper traits namespace.
Definition: drop.hpp:64
#include <raberu/raberu.hpp>
#include <iostream>
#include <tuple>
int main()
{
auto opts =
rbr::settings(
"size"_kw = 75ULL,
"modal"_fl,
"value"_kw = 13.37);
auto kws = rbr::keywords<std::tuple>(opts);
std::apply( []<typename... T>(T const&...)
{
((std::cout << typename T::id_type{} << "\n"),...);
}
, kws
);
}
Raberu literals namespace.
Definition: keywords.hpp:369
Defines a group of options for processing.
Definition: settings.hpp:50