dot-xx
A personal collection of small C++ modules
|
overload pattern with a few bells and whistles More...
Classes | |
struct | dxx::overload::overload< Ts > |
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... |
overload pattern with a few bells and whistles
Supports, aside from resgular function-like objects, free and member function pointers:
There is also a utility operator| for the overload that automatically calls std::visit:
Files | |
file | /build-llvm-libcpp/_deps/dot-xx-overload-src/src/overload.xx |
Main interface file of dxx::overload module. |