A class for testing wrapped template parameter types. More...
| Header: | #include <template_sugar.h> |
| void | byConstRef(const T &value) |
| void | byPointer(T *value) |
| void | nested(MyContainer<T> items) |
T is the dispatched element type.
Dispatcher exercises canonical fallback for wrapped template parameter types such as T *, const T &, and MyContainer<T>. These verify that canonical comparison is symmetric: both sides canonicalize the same way, so the fallback produces correct matches even though the user-facing template parameter name is lost in the canonical form.
Dispatches via a const reference to value.
Dispatches via a pointer to value.
Dispatches all elements in items.