26#include <forward_list>
42template <
class T,
class Alloc = std::allocator < T > >
43class forward_list :
public std::forward_list < T, Alloc >, AllocFix < Alloc > {
48 using std::forward_list < T, Alloc >::forward_list;
53 using std::forward_list < T, Alloc >::operator =;
89 template <
class Iterator >
120 return make_move_iterator ( this->
begin ( ) );
150 return make_move_iterator ( this->
end ( ) );
160 auto endIter =
end ( );
161 auto beginIter =
begin ( );
172 auto endIter =
end ( );
173 auto beginIter =
begin ( );
184 auto endIter = std::move ( * this ).end ( );
185 auto beginIter = std::move ( * this ).begin ( );
202template<
class T,
class ... Ts >
208 if(!first) out <<
", ";
Class extending the forward_list class from the standard library. Original reason is to allow printin...
Definition: forward_list.hpp:43
auto range() &
Make range of non-const begin to end iterators.
Definition: forward_list.hpp:159
auto range() const &
Make range of non-const begin to end iterators.
Definition: forward_list.hpp:171
forward_list(const ext::iterator_range< Iterator > &range)
Definition: forward_list.hpp:90
auto begin() &&
Inherited behavior of begin for rvalues.
Definition: forward_list.hpp:119
forward_list(forward_list &&other)=default
auto end() const &
Inherited behavior of end for const instance.
Definition: forward_list.hpp:139
auto end() &
Inherited behavior of end for non-const instance.
Definition: forward_list.hpp:129
auto end() &&
Inherited behavior of end for rvalues.
Definition: forward_list.hpp:149
auto range() &&
Make range of move begin to end iterators.
Definition: forward_list.hpp:183
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: forward_list.hpp:99
forward_list(const forward_list &other)=default
forward_list & operator=(forward_list &&other)=default
auto begin() const &
Inherited behavior of begin for const instance.
Definition: forward_list.hpp:109
Implementation of iterator_range, i.e. pair of iterators. The class provides most notably begin and e...
Definition: range.hpp:24
Definition: sigHandler.cpp:20
std::ostream & operator<<(ext::reference_wrapper< std::ostream > &os, std::ostream &(*const func)(std::ostream &))
Overloaded function allowing same operations on wrapped output stream as on the actual output stream,...
Definition: GlobalData.cpp:33
auto begin(Container &&cont) -> decltype(std::forward(cont).begin())
Definition: iterator.hpp:900
void end()
Definition: measurements.cpp:19