第 16 節

Level up your programming with STL.

0瀏覽次數0訪問次數--跳出率--平均停留

Level up your programming with STL.

This chapter covers the core usage of STL: introduction to STL, fixed-size arrays, strings, sequence containers, container adapters, associative containers, function objects, predicates, and common algorithms.

Learning Sequence

  1. std::array: Fixed-size array, suitable as an alternative to C-style fixed-length arrays.
  2. string: String container responsible for string construction, assignment, concatenation, searching, and slicing.
  3. vector / deque: Common sequence containers, one suitable for contiguous storage at the tail, the other for double-ended operations.
  4. stack / queue / list: container adapters and linked lists, suitable for specific access patterns.
  5. set / map: associative containers, suitable for deduplication, sorting, and key-value lookups.
  6. Function objects and predicates: using "callable logic" as algorithm parameters.
  7. Common algorithms: traversal, searching, sorting, copying and replacing, arithmetic generation, and set algorithms.
音乐页