raberu v1.1.0
Fancy Named Parameter Library
 
Loading...
Searching...
No Matches

◆ flag()

template<typename Tag >
constexpr flag_keyword< Tag > flag ( Tag  id)
related

Create a flag keyword for reuse.

Parameters
idUnique rbr::id_ for the keyword being built
Returns
An instance of rbr::flag_keyword

Example:

#include <raberu/raberu.hpp>
#include <iostream>
using namespace rbr::literals;
inline constexpr auto modal = rbr::flag("modal window"_id);
int main()
{
std::cout << rbr::settings( modal );
}
Raberu literals namespace.
Definition: keywords.hpp:369
Defines a group of options for processing.
Definition: settings.hpp:50