Item-47 Use traits classes for information about types
· โ 6 min read
Implemented by templates and template specializations, traits classes make information about types available during compilation. Combining traints with overloading, it is possible to perform compile-time if...else
tests on types.