The Battle for Wesnoth  1.15.1+dev
Public Member Functions | List of all members
unit::upkeep_type_visitor Struct Reference

Visitor helper struct to fetch the upkeep type flag if applicable, or the the value otherwise. More...

#include <unit.hpp>

Inheritance diagram for unit::upkeep_type_visitor:
Inheritance graph

Public Member Functions

template<typename T >
std::enable_if_t<!std::is_same< int, T >::value, std::string > operator() (T &) const
 
std::string operator() (int v) const
 

Detailed Description

Visitor helper struct to fetch the upkeep type flag if applicable, or the the value otherwise.

Definition at line 1110 of file unit.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename T >
std::enable_if_t<!std::is_same<int, T>::value, std::string> unit::upkeep_type_visitor::operator() ( T &  ) const
inline

Definition at line 1114 of file unit.hpp.

◆ operator()() [2/2]

std::string unit::upkeep_type_visitor::operator() ( int  v) const
inline

Definition at line 1120 of file unit.hpp.


The documentation for this struct was generated from the following file: