It supports any member and friend function of that class. Additionally it provides functions for sorting and searching, inserting and deleting.
T can be either a built-in type or a class.
Furthermore, specific compare functions may be used to define a relation of elements of type T . These functions define a new sort relation for a vector. The latter indicates that the sort direction of v has been set to a certain compare function. The latter indicates that the sort direction of v has been set to a certain compare function. There are three different prototypes for this sort routine that allow a variety of calls of the functions.