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

◆ keyword()

template<typename ID >
constexpr any_keyword< ID > keyword ( ID  id)
related

Create a regular keyword for reuse.

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

Example:

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