Retrieved a value via a keyword.
#include <raberu/raberu.hpp>
#include <iostream>
int main()
{
int i = 77;
std::cout <<
values[
"size"_kw] <<
"\n";
std::cout <<
values[
"transparent"_fl] <<
"\n";
std::cout <<
values[
"value"_kw | 13.37] <<
"\n";
std::cout <<
values[
"modal"_fl |
rbr::call([&]() {
return i++; })] <<
"\n\n";
std::cout << "i = " << i << "\n";
}
constexpr auto values(rbr::settings< Opts... > const &s)
Retrieved the list of all value stored in a settings.
Definition: keys_values.hpp:91
Raberu literals namespace.
Definition: keywords.hpp:369
Callable object wrapper for functional default value.
Definition: keywords.hpp:31
Defines a group of options for processing.
Definition: settings.hpp:50