Find | a.find(k) | |
Count | a.count(k) | size_type |
Equal range | a.equal_range(k) |
Name | Expression | Precondition | Semantics | Postcondition |
---|---|---|---|---|
Default constructor | X() X a; | Creates an empty container. | The size of the container is | |
Erase key | a.erase(k) | Destroys all elements whose key is the same as | ||
Erase element | a.erase(p) | Destroys the element pointed to by | ||
Erase range | a.erase(p, q) | Destroys the elements in the range | ||
Clear | a.clear() | Equivalent to | ||
Find | a.find(k) | Returns an iterator pointing to an element whose key is the same as | Either the return value is | |
Count | a.count(k) | Returns the number of elements in | ||
Equal range | a.equal_range(k) | Returns a pair | The distance between |
Вы читаете Standard Template Library Programmer's Guide
×