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

Main Raberu namespace. More...

Detailed Description

Main Raberu namespace.

Namespaces

namespace  concepts
 Raberu Concepts namespace.
namespace  literals
 Raberu literals namespace.
namespace  result
 Raberu helper traits namespace.

Classes

struct  any_keyword
 Regular keyword. More...
struct  as_keyword
 Base class for keyword definition. More...
struct  call
 Callable object wrapper for functional default value. More...
struct  checked_keyword
 Checked keyword. More...
struct  flag_keyword
 Flag keyword. More...
struct  id_
 Compile-time text based ID. More...
struct  is_equivalent
 Checks the equivalence of two rbr::settings. More...
struct  option
 Callable object wrapper for functional default value. More...
struct  settings
 Defines a group of options for processing. More...
struct  typed_keyword
 Typed keyword. More...
struct  types
 Lightweight variadic type list. More...
struct  unknown_key
 Type indicating that a Keyword is not available. More...

Functions

template<concepts::keyword K, concepts::option... O>
constexpr auto drop (K const &k, settings< O... > const &s)
 Remove an option from a rbr::settings.
template<concepts::keyword K, typename V, concepts::option... Os>
constexpr decltype(auto) fetch (_::type_or_< K, V > const &k, Os const &... os)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<concepts::keyword K, concepts::option... Os>
constexpr decltype(auto) fetch (K const &k, Os const &... os)
 Retrieved a value via a keyword.
template<typename K, concepts::settings Settings>
constexpr decltype(auto) fetch (K const &k, Settings const &opts)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename Tag>
constexpr flag_keyword< Tag > flag (Tag id) noexcept
 Create a flag keyword for reuse.
template<typename ID>
constexpr any_keyword< ID > keyword (ID id) noexcept
 Create a regular keyword for reuse.
template<template< class > class Checker, typename ID>
constexpr checked_keyword< ID, Checker > keyword (ID id) noexcept
 Create a checked keyword for reuse.
template<typename Type, typename ID>
constexpr typed_keyword< ID, Type > keyword (ID id) noexcept
 Create a typed Keyword for reuse.
template<template< typename... > class List, typename... Opts>
constexpr auto keywords (rbr::settings< Opts... > const &s)
 Retrieved the list of all keywords in a settings.
template<concepts::option... K1s, concepts::option... K2s>
constexpr auto merge (settings< K1s... > const &opts, settings< K2s... > const &defs) noexcept
 Merge two instances of rbr::settings.
template<str ID>
constexpr auto operator""_fl () noexcept
 Forms an instance of rbr::flag_keyword from a literal string.
template<str ID>
constexpr auto operator""_kw () noexcept
 Forms an instance of rbr::any_keyword from a literal string.
template<concepts::option... Opts>
 settings (Opts const &... opts) -> settings< Opts... >
 rbr::settings deduction guide
template<template< typename... > class List, typename... Opts>
constexpr auto values (rbr::settings< Opts... > const &s)
 Retrieved the list of all value stored in a settings.