Methods

suggest change

Method name Definition
operator= assigns values to the container
assign assigns values to the container
get_allocator returns the associated allocator
   
Element access  
front access the first element
   
Iterators  
before_begin returns an iterator to the element before beginning
cbefore_begin returns a constant iterator to the element before beginning
begin returns an iterator to the beginning
cbegin returns a const iterator to the beginning
end returns an iterator to the end
cend returns a iterator to the end
   
Capacity  
empty checks whether the container is empty
max_size returns the maximum possible number of elements
   
Modifiers  
clear clears the contents
insert_after inserts elements after an element
emplace_after constructs elements in-place after an element
erase_after erases an element after an element
push_front inserts an element to the beginning
emplace_front constructs an element in-place at the beginning
pop_front removes the first element
resize changes the number of elements stored
swap swaps the contents
   
Operations  
merge merges two sorted lists
splice_after moves elements from another forward_list
remove removes elements satisfying specific criteria
remove_if removes elements satisfying specific criteria
reverse reverses the order of the elements
unique removes consecutive duplicate elements
sort sorts the elements

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


std::forward_list:
* Methods

Table Of Contents
8 Arrays
11 Loops
34 std::forward_list
39 Streams
51 Unions
56 Lambdas
60 SFINAE
62 RAII
67 Sorting
84 RTTI
87 Scopes
104 Profiling
107 Recursion
117 Iteration
125 Alignment
134 Semaphore
136 Debugging
139 Mutexes
142 decltype