This chapter is about working with sets. A set is a simple mathematical concept that is intuitive in its meaning – a collection of things with some common characteristic. There are two notions of a set in the STL, both of which relate to the mathematical idea of a set. A set can be a sequence of objects within a range that is defined by two iterators. A set is also a type of container with particular characteristics. Set containers are associative containers in which the objects are their own keys. In this chapter, You’ll learn the following:


Pair Object String Class Function Member Person Object Lambda Expression 

Supplementary material

978-1-4842-0004-9_5_MOESM1_ESM.zip (17 kb)
Chapter 5 (zip 17 kb)

Copyright information

© Ivor Horton 2015

Authors and Affiliations

  • Ivor Horton
    • 1
  1. 1.WAUK

Personalised recommendations