Class templates, function templates (including generic lambdas), and other templated functions (typically members of class templates) might be associated with a constraint , which specifies the requirements on template arguments, which can be used to select the most appropriate function overloads and template specializations.| en.cppreference.com
873 Posts, 59 Following, 1.08K Followers · C++, compilers, and programming languages. Library developer @ think-cell, chair for std::ranges @ C++ standardization committee.| Fosstodon
The visitor pattern is a classical OOP pattern. It is used to solve the problem where you frequently want to add virtual functions to a class hierarchy, but rarely want to add new classes. However, it isn't particularly nice to use and doesn't fit the inheritance less trend of C++. So can we make it more modern and nicer to use?| www.foonathan.net