xtd 0.2.0
Loading...
Searching...
No Matches
xtd::non_const_overload< args_t > Struct Template Reference

Definition

template<class ... args_t>
struct xtd::non_const_overload< args_t >

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

Namespace
xtd
Library
xtd.core

Operators

template<class result_t , class type_t >
constexpr auto operator() (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.
 

Public Static Methods

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

Member Function Documentation

◆ operator()()

template<class ... args_t>
template<class result_t , class type_t >
constexpr auto xtd::non_const_overload< args_t >::operator() ( result_t(type_t::*)(args_t...)  method) const -> decltype(method)
inlineconstexprnoexcept

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.

◆ of()

template<class ... args_t>
template<class result_t , class type_t >
static constexpr auto xtd::non_const_overload< args_t >::of ( result_t(type_t::*)(args_t...)  method) -> decltype(method)
inlinestaticconstexprnoexcept

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: