xtd 0.2.0
xtd::const_overload< args_t > Struct Template Reference

Definition

template<typename... args_t>
struct xtd::const_overload< args_t >

Represents class that use to determine one of const overloaded methods.

Library
xtd.core

Ooperators

template<typename result_t , typename type_t >
constexpr auto operator() (result_t(type_t::*method)(args_t...) const) const noexcept -> decltype(method)
 Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method. More...
 

Methods

template<typename result_t , typename type_t >
static constexpr auto of (result_t(type_t::*method)(args_t...) const) noexcept -> decltype(method)
 Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method. More...
 

Member Function Documentation

◆ of()

template<typename... args_t>
template<typename result_t , typename type_t >
static constexpr auto xtd::const_overload< args_t >::of ( result_t(type_t::*)(args_t...) const  method) -> decltype(method)
inlinestaticnoexcept

Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method.

Parameters
methodis the pointer to the (member) method
Returns
Pointer to an overloaded method.

◆ operator()()

template<typename... args_t>
template<typename result_t , typename type_t >
constexpr auto xtd::const_overload< args_t >::operator() ( result_t(type_t::*)(args_t...) const  method) const -> decltype(method)
inlinenoexcept

Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method.

Parameters
methodis the pointer to the (member) method
Returns
Pointer to an overloaded method.

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