Ray's playground

 

Item 47: Use traits classes for information about types(Effective C++)

  • Traits classes make information about types available during compilation. They're implemented using templates and template specializations.

  • In conjunction with overloading, traits classes make it possible to perform compile-time if...else tests on types.

posted on 2011-04-08 22:03  Ray Z  阅读(129)  评论(0编辑  收藏  举报

导航