Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computer
programming, a traits class is a class template used to associate
information or behaviour to a compile-time entity, typically a data type
or a constant, without modifying the existing entity. In the C++
programming language and PHP programming language, this is normally
achieved by defining a primary class template, and creating explicit or
partial specializations for the relevant types. It is used in Standard
Template Library and the C++ standard library to support generic
container classes. The technique is used extensively in the Boost
TypeTraits library. PHP uses this in some other way. Since version
5.4.0, it allows users to specify templates that are not as dynamic as
C++ in using different data types, but they give the ability to
"inherit" from more than one class.