std::forward_list::reverse

From Cppreference

Jump to: navigation, search
void reverse();
(C++11 feature)

Reverses the order of the elements in the container. No references or iterators become invalidated.

Contents

[edit] Parameters

(none)

[edit] Return value

(none)

[edit] Example

[edit] Complexity

linear in the size of the container

[edit] See also

sort
sorts the elements
(public member function)