- Mastering C++ Programming
- Jeganathan Swaminathan
- 112字
- 2021-07-02 18:28:49
Sequence containers
The STL supports quite an interesting variety of sequence containers. Sequence containers store homogeneous data types in a linear fashion, which can be accessed sequentially. The STL supports the following sequence containers:
- Arrays
- Vectors
- Lists
- forward_list
- deque
As the objects stored in an STL container are nothing but copies of the values, the STL expects certain basic requirements from the user-defined data types in order to hold those objects inside a container. Every object stored in an STL container must provide the following as a minimum requirement:
- A default constructor
- A copy constructor
- An assignment operator
Let's explore the sequence containers one by one in the following subsections.
推薦閱讀
- Learning PostgreSQL
- Mastering Selenium WebDriver
- 深入淺出WPF
- JavaFX Essentials
- Big Data Analytics
- Python機器學(xué)習(xí)經(jīng)典實例
- Linux命令行與shell腳本編程大全(第4版)
- RabbitMQ Cookbook
- Python機器學(xué)習(xí)算法與應(yīng)用
- OpenMP核心技術(shù)指南
- JavaScript機器人編程指南
- Simulation for Data Science with R
- C#面向?qū)ο蟪绦蛟O(shè)計(第2版)
- WildFly Cookbook
- MongoDB Administrator’s Guide