|
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 | //dot-xx-overload/7338e3df4e527f7ac20e3471672260962b070b37/src/overload.xx |
| Main interface file of dxx::overload module. | |