Expression | Explanation |
C::iterator a | a is an iterator of C |
C a; | creates a container object named a |
C a(b); | a uses copy constructor to initialize its contents to bs contents |
C a = b; | as contents are initialized to bs contents |
a.size() | returns the number of elements |
a.begin() | returns an iterator pointing to the first element |
a.end() | returns an iterator pointing to the place immediately past the last element |
a == b | returns true if a and b have the same size and each element in a is the same as the corresponding element in b; returns false otherwise |
a != b | returns false if a and b have the same size and each element in a is the same as the corresponding element in b; returns true otherwise |
a.swap(b) | swaps the contents of a and those of b |