The Battle for Wesnoth  1.19.5+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>

Public Member Functions

template<typename T >
std::enable_if_t<!std::is_same_v< int, T >, 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 1215 of file unit.hpp.


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