This chapter is about three areas that the STL supports that are somewhat more specialized than the rest. The numeric header defines STL features that make numerical data processing easier or more efficient. The chrono header provides capabilities for working with time, both clock-on-the-wall time and time intervals. Finally, the complex header defines class templates that support operations with complex numbers.

In this chapter you will learn:

  • How you create valarray objects for storing numerical data.
  • What slice objects are and how you create and use them.
  • What gslice objects are and how you use them.
  • What the ratio class template is for and how you use it.
  • How you access and use the clocks your hardware has.
  • How you create objects that encapsulate ...

Get Using the C++ Standard Template Libraries now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.