|
cortexlib
v0.2.0
|
Classes | |
| struct | match |
| match structure More... | |
| struct | match_any |
| Wildcard Empty Placeholder. More... | |
Functions | |
| template<typename... Fs> | |
| match (Fs &&...) -> match< std::remove_reference_t< Fs >... > | |
| Template Deduction Guide. More... | |
| template<typename... Ts, typename... Fs> | |
| constexpr auto | operator>> (const std::variant< Ts... > &var, const match< Fs... > &m) -> void |
| Match Expression Notation. More... | |
| template<typename... Ts, typename... Fs> | |
| constexpr auto | operator<< (const std::variant< Ts... > &var, const match< Fs... > &m) -> decltype(auto) |
| Match Expression Assignment Overload. More... | |
| cxl::utils::match | ( | Fs && | ... | ) | -> match< std::remove_reference_t< Fs >... > |
Template Deduction Guide.
|
constexpr |
Match Expression Assignment Overload.
Overloads the >>= operator to reverse the argument order of a match expression for a cleaner syntax with existing match types and to denote an explicit syntax for match expressions that return a value.
| ...Ts | |
| ...Fs |
| var | type: const std::variant<Ts...>& |
| m | type: const match<Fs...>& |
|
constexpr |
Match Expression Notation.
Overloads >> to reverse the argument order of a match expression for a cleaner syntax with existing match types.
| ...Ts | |
| ...Fs |
| var | type: const std::variant<Ts...>& |
| m | type const match<Fs...>& |