出典:Wikipedia
出典:『Wikipedia』 (2010/02/16 06:47 UTC 版)
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, this is normally achieved by defining a primary class template, and creating explicit or partial specializations for the relevant types.