std::list<T,Allocator>::reverse (3) - Linux Manuals
std::list<T,Allocator>::reverse: std::list<T,Allocator>::reverse
NAME
std::list<T,Allocator>::reverse - std::list<T,Allocator>::reverse
Synopsis
void reverse(); (until C++11)
void reverse() noexcept; (since C++11)
Reverses the order of the elements in the container. No references or iterators become invalidated.
Parameters
(none)
Return value
(none)
Complexity
Linear in the size of the container
Example
// Run this code
Output:
See also
sort (public member function)