The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
unit_detail Namespace Reference

Functions

template<typename T >
const T & get_or_default (const std::unique_ptr< T > &v)
 

Function Documentation

template<typename T >
const T& unit_detail::get_or_default ( const std::unique_ptr< T > &  v)

Definition at line 39 of file unit.hpp.

Referenced by unit::image_ellipse(), unit::image_halo(), and unit::usage().