#include <raberu/raberu.hpp>
#include <iostream>
template<rbr::concepts::settings S>
void check_contains( S const& s)
{
if constexpr( S::contains( "value"_kw ) )
std::cout << "Correct settings: " << s["value"_kw] << '\n';
else
std::cout << "Incorrect settings\n";
}
int main()
{
check_contains(
rbr::settings(
"malus"_kw = 6.5,
"value"_kw = 17) );
}
Raberu literals namespace.
Definition: keywords.hpp:369
Defines a group of options for processing.
Definition: settings.hpp:50