STL can be categorized into the following groupings:
- Container classes:
- Sequences:
- vector: (this tutorial) Dynamic array of variables, struct or objects. Insert data at the end.
(also see the YoLinux.com tutorial on using and STL list and boost ptr_list to manage pointers.) - deque: Array which supports insertion/removal of elements at beginning or end of array
- list: (this tutorial) Linked list of variables, struct or objects. Insert/remove anywhere.
- vector: (this tutorial) Dynamic array of variables, struct or objects. Insert data at the end.
- Associative Containers:
- Container adapters:
- stack LIFO
- queue FIFO
- priority_queue returns element with highest priority.
- String:
- string: Character strings and manipulation
- rope: String storage and manipulation
- bitset: Contains a more intuitive method of storing and manipulating bits.
- Sequences:
- Operations/Utilities:
- iterator: (examples in this tutorial) STL class to represent position in an STL container. An iterator is declared to be associated with a single container class type.
- algorithm: Routines to find, count, sort, search, ... elements in container classes
- auto_ptr: Class to manage memory pointers and avoid memory leaks.
No comments:
Post a Comment