Advertisement

Traits and Policies

  • Ray Lischner
Chapter

Abstract

Although you may still be growing accustomed to templates, it’s time to explore two common, related use patterns: traits and policies. Programming with traits and policies is probably a new style for you, but it is common in C++. As you will discover in this Exploration, this technique is extremely flexible and powerful. Traits and policies underlie much of the C++ standard library. This Exploration looks at some of the traits and policies in the standard library, so that you can learn how to take advantage of them. It then helps you take the first steps toward writing your own.

Keywords

Standard Library String Class Loop Condition Type Trait Advance Function 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Ray Lischner 2013

Authors and Affiliations

  • Ray Lischner
    • 1
  1. 1.MDUS

Personalised recommendations