dot-xx
A personal collection of small C++ modules
Loading...
Searching...
No Matches
dxx::overload Namespace Reference

Main namespace for dxx::overload module. More...

Classes

class  fn_ptr_wrapper
 Class == int means free function (can't have a method on int) More...
struct  overload
 Overload pattern implementation. Itself does not differ from https://www.cppstories.com/2019/02/2lines3featuresoverload.html/, extra functionality comes from CTAD. See module description for usage. More...
struct  wrap_callable
struct  wrap_callable< Ret(*)(Args...)>
struct  wrap_callable< Ret(Class::*)(Args...) && >
struct  wrap_callable< Ret(Class::*)(Args...) const >
struct  wrap_callable< Ret(Class::*)(Args...)>

Functions

template<typename... Ts>
 overload (Ts...) -> overload< typename wrap_callable< Ts >::type... >
 CTAD is not necessary for basic overload pattern, but here we also want to support free and member function pointers.

Detailed Description

Main namespace for dxx::overload module.