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