The Battle for Wesnoth  1.19.5+dev
Namespaces | Typedefs | Functions
variable_info.cpp File Reference
#include "variable_info.hpp"
#include "variable_info_private.hpp"
#include <utility>
Include dependency graph for variable_info.cpp:

Go to the source code of this file.

Namespaces

 variable_info_implementation
 

Typedefs

template<typename V , typename T >
using range_visitor_wrapper = as_range_visitor_base< V, T, std::vector< config > & >
 In order to allow the appropriate 'children' argument to forward through to the appropriate ctor of type T in as_range_visitor_base via apply_visitor, we need to specify the argument type as an rvalue reference to lvalue reference in order to collapse to an lvalue reference. More...
 

Functions

template<typename V , typename... T>
V::result_t variable_info_implementation::apply_visitor (typename V::param_t state, T &&... args)
 Helper function to apply the result of a specified visitor to a variable_info object. More...
 

Typedef Documentation

◆ range_visitor_wrapper

template<typename V , typename T >
using range_visitor_wrapper = as_range_visitor_base<V, T, std::vector<config>&>

In order to allow the appropriate 'children' argument to forward through to the appropriate ctor of type T in as_range_visitor_base via apply_visitor, we need to specify the argument type as an rvalue reference to lvalue reference in order to collapse to an lvalue reference.

Using a convenient template alias for convenience.

Definition at line 195 of file variable_info.cpp.