Class extending the forward_list class from the standard library. Original reason is to allow printing of the container with overloaded operator <<.
More...
#include <forward_list.hpp>
template<class T, class Alloc = std::allocator < T >>
class ext::forward_list< T, Alloc >
Class extending the forward_list class from the standard library. Original reason is to allow printing of the container with overloaded operator <<.
The class mimics the behavior of the forward_list from the standatd library.
- Template Parameters
-
T | the type of values inside the forward_list |
Alloc | the allocator of values of type T |
◆ forward_list() [1/4]
template<class T , class Alloc = std::allocator < T >>
Default constructor needed by g++ since it is not inherited
◆ forward_list() [2/4]
template<class T , class Alloc = std::allocator < T >>
Copy constructor needed by g++ since it is not inherited
◆ forward_list() [3/4]
template<class T , class Alloc = std::allocator < T >>
Move constructor needed by g++ since it is not inherited
◆ forward_list() [4/4]
template<class T , class Alloc = std::allocator < T >>
template<class Iterator >
Constructor from range of values.
- Template Parameters
-
Iterator | the type of range iterator |
- Parameters
-
◆ begin() [1/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of begin for non-const instance.
- Returns
- iterator the first element of forward_list
◆ begin() [2/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of begin for rvalues.
- Returns
- move_iterator the first element of forward_list
◆ begin() [3/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of begin for const instance.
- Returns
- const_iterator the first element of forward_list
◆ end() [1/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of end for non-const instance.
- Returns
- iterator to one after the last element of forward_list
◆ end() [2/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of end for rvalues.
- Returns
- move_iterator to one after the last element of forward_list
◆ end() [3/3]
template<class T , class Alloc = std::allocator < T >>
Inherited behavior of end for const instance.
- Returns
- const_iterator to one after the last element of forward_list
◆ operator=() [1/2]
template<class T , class Alloc = std::allocator < T >>
Move operator = needed by g++ since it is not inherited
◆ operator=() [2/2]
template<class T , class Alloc = std::allocator < T >>
Copy operator = needed by g++ since it is not inherited
◆ range() [1/3]
template<class T , class Alloc = std::allocator < T >>
Make range of non-const begin to end iterators.
- Returns
- full range over container values
◆ range() [2/3]
template<class T , class Alloc = std::allocator < T >>
Make range of move begin to end iterators.
- Returns
- full range over container values
◆ range() [3/3]
template<class T , class Alloc = std::allocator < T >>
Make range of non-const begin to end iterators.
- Returns
- full range over container values
The documentation for this class was generated from the following file: