The Battle for Wesnoth  1.15.0-dev
Public Types | Public Member Functions | Private Attributes | List of all members
detail::apply< Ret, T > Struct Template Reference

#include <functional.hpp>

Public Types

using result_type = void
 

Public Member Functions

 apply (const std::function< Ret(T...)> &fcn)
 
 apply (Ret(*fcn)(T...))
 
void operator() (T... params)
 

Private Attributes

std::function< Ret(T...)> fcn
 

Detailed Description

template<typename Ret, typename... T>
struct detail::apply< Ret, T >

Definition at line 36 of file functional.hpp.

Member Typedef Documentation

◆ result_type

template<typename Ret , typename... T>
using detail::apply< Ret, T >::result_type = void

Definition at line 37 of file functional.hpp.

Constructor & Destructor Documentation

◆ apply() [1/2]

template<typename Ret , typename... T>
detail::apply< Ret, T >::apply ( const std::function< Ret(T...)> &  fcn)
inline

Definition at line 38 of file functional.hpp.

◆ apply() [2/2]

template<typename Ret , typename... T>
detail::apply< Ret, T >::apply ( Ret(*)(T...)  fcn)
inline

Definition at line 39 of file functional.hpp.

Member Function Documentation

◆ operator()()

template<typename Ret , typename... T>
void detail::apply< Ret, T >::operator() ( T...  params)
inline

Definition at line 40 of file functional.hpp.

Member Data Documentation

◆ fcn

template<typename Ret , typename... T>
std::function<Ret(T...)> detail::apply< Ret, T >::fcn
private

Definition at line 44 of file functional.hpp.


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