Standard Library Containers, Algorithms, and Iterators

We will cover the following recipes in this chapter:

  • Using vector as a default container
  • Using bitset for fixed-size sequences of bits
  • Using vector<bool> for variable-size sequences of bits
  • Finding elements in a range
  • Sorting a range
  • Initializing a range
  • Using set operations on a range
  • Using iterators to insert new elements in a container
  • Writing your own random access iterator
  • Container access with non-member functions

 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset