#include <overload.h>
template<typename... args_t>
struct xtd::overload< args_t >
Represents class that use to determine one of const and non const overloaded methods.
- Library
- xtd.core
Inherits xtd::const_overload< args_t... >, and xtd::non_const_overload< args_t... >.
|
template<typename result_t > |
constexpr auto | operator() (result_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.
|
|
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.
|
|
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.
|
|
|
template<typename result_t > |
static constexpr auto | of (result_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.
|
|
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.
|
|
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.
|
|
◆ of()
template<typename... args_t>
template<typename result_t >
static constexpr auto xtd::overload< args_t >::of |
( |
result_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
-
method | is the pointer to the (member) method |
- Returns
- Pointer to an overloaded method.
◆ operator()()
template<typename... args_t>
template<typename result_t >
constexpr auto xtd::overload< args_t >::operator() |
( |
result_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
-
method | is the pointer to the (member) method |
- Returns
- Pointer to an overloaded method.
The documentation for this struct was generated from the following file: