S.N. |
Method & Description |
1 |
list::assign range versionAssigns new value to list by replacing old ones. |
2 |
list::assign fill versionAssigns new values to list by replacing old ones. |
3 |
list::assign initializer list versionAssigns new values to list by replacing old ones. |
4 |
list::back
Returns a reference to the last element of the list. |
5 |
list::begin
Returns a random access iterator which points to the first element of the list. |
6 |
list::cbegin
Returns a constant random access iterator which points to the beginning of the list. |
7 |
list::cend
Returns a constant random access iterator which points to the end of the list. |
8 |
list::clear
Destroys the list by removing all elements from the list and sets size of list to zero. |
9 |
list::crbegin
Returns a constant reverse iterator which points to the last element of the list. |
10 |
list::crend
Returns a constant reverse iterator which points to the theoretical element preceding the first element in the list. |
11 |
list::emplace
Extends list by inserting new element at a given position. |
12 |
list::emplace_back
Inserts new element at the end of list and increases size of list by one. |
13 |
list::emplace_front
Inserts new element at the beginning of the list and increases size of list by one. |
14 |
list::empty
Tests whether list is empty or not. |
15 |
list::end
Returns a random access iterator which points to the last element of the list. |
16 |
list::erase position versionRemoves single element from the the list. |
17 |
list::erase range versionRemoves range of element from the the list. |
18 |
list::front
Returns a reference to the first element of the list. |
19 |
list::get_allocator
Returns an allocator associated with list |
20 |
list::insert single element versionExtends iterator by inserting new element at position in list. |
21 |
list::insert fill versionExtends list by inserting new elements in the container. |
22 |
list::insert range versionExtends list by inserting new elements in the container. |
23 |
list::insert move versionExtends list by inserting new element in the container. |
24 |
list::insert initializer list versionExtends list by inserting new elements in the container |
25 |
list::max_size
Returns the maximum number of elements can be held by list. |
26 |
list::merge
Merges two sorted lists into one. |
27 |
list::merge compare functionMerges two sorted lists into one. |
28 |
list::merge move versionMerges two sorted lists into one by using move semantics. |
29 |
list::merge compare function move versionMerges two sorted lists into one by using move semantics. |
30 |
list::operator= copy version Assigns new contents to the list by replacing old ones. |
31 |
list::operator= move version Assign new contents to the list by replacing old ones. |
32 |
list::operator= initializer list version Assign new contents to the list by replacing old ones. |
33 |
list::pop_back
Removes last element from list. |
34 |
list::pop_front
Removes first element from list. |
35 |
list::push_back
Inserts new element at the end of list. |
36 |
list::push_back move versionInserts new element at the end of list. |
37 |
list::push_front
Inserts new element at the beginning of list. |
38 |
list::push_front move versionInserts new element at the beginning of list. |
39 |
list::rbegin
Returns a reverse iterator which points to the last element of the list. |
40 |
list::remove
removes element(s) from the list that matches the value. |
41 |
list::remove_if
removes elements from the list that fulfills the condition. |
42 |
list::rend
Returns a reverse iterator which points to the reverse end of the list. |
43 |
list::resize
Changes the size of list. |
44 |
list::resize value versionChanges the size of list. |
45 |
list::reverse
Reverses the order of the elements present in the list. |
46 |
list::size
Returns the number of elements present in the list. |
47 |
list::sort
Sorts the elements of the list. |
48 |
list::sort compare functionSorts the elements of the list. |
49 |
list::splice
Transfers all elements from list to *this. |
50 |
list::splice single elementTransfers a element pointed to by iterator i from list x into *this. |
51 |
list::splice move version Transfers all elements from list x to *this by using move semantics. |
52 |
list::splice range version
Transfers the elements in the range of first to last from x to *this. |
53 |
list::splice single element move version Transfers the element pointed to by iterator i from list x into *this by using move semantics. |
54 |
list::splice range and move version Transfers the elements in the range of first to last from x to *this by using move semantics. |
55 |
list::swap
Exchanges the content of list with contents of another list x. |
56 |
list::unique
Removes all consecutive duplicate elements from the list. |
57 |
list::unique
Removes all consecutive duplicate elements from the list. |
No comments:
Post a Comment