xtd - Reference Guide
0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <overload.h>
Represents class that use to determine one of const overloaded methods.
Public Member Functions | |
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. | |
Static Public Member Functions | |
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. | |
|
inlinestaticconstexprnoexcept |
Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method.
method | is the pointer to the (member) method |
|
inlineconstexprnoexcept |
Returns a pointer to an overloaded method. The template parameter is the list of the argument types of the method.
method | is the pointer to the (member) method |