|
variant
A type safe generalized union type
|
Implements the function apply_visitor. More...
Go to the source code of this file.
Classes | |
| class | variant< Types > |
| A type safe generalized union. More... | |
| struct | result_of_visit< Callable, Args > |
| Compute the result type of a visit. More... | |
| struct | is_nothrow_visitable< Callable, Args > |
| Determine if a visit operation might throw. More... | |
Functions | |
| template<class Callable , class... Args> | |
| result_of_visit_t< Callable &&, Args &&...> | apply_visitor (Callable &&c, Args &&...args) noexcept(is_nothrow_visitable< Callable &&, Args &&...>::value) |
Calls the provided Callable with the given Args, replacing the variant args with the actual type. More... | |
Implements the function apply_visitor.
|
noexcept |
Calls the provided Callable with the given Args, replacing the variant args with the actual type.
| Callable | Must be a function object that can accept all the possible combination of the variant types provided in Args |
Example:
1.8.9.1