43template <
class T,
class Alloc = std::allocator < T > >
44class list :
public std::list < T, Alloc > {
49 using std::list < T, Alloc >::list;
54 using std::list < T, Alloc >::operator =;
90 template <
class Iterator >
121 return make_move_iterator ( this->
begin ( ) );
151 return make_move_iterator ( this->
end ( ) );
161 auto endIter =
end ( );
162 auto beginIter =
begin ( );
173 auto endIter =
end ( );
174 auto beginIter =
begin ( );
185 auto endIter = std::move ( * this ).end ( );
186 auto beginIter = std::move ( * this ).begin ( );
203template<
class T,
class ... Ts >
208 for(
const T& item :
list) {
209 if(!first) out <<
", ";
Implementation of iterator_range, i.e. pair of iterators. The class provides most notably begin and e...
Definition: range.hpp:24
Class extending the list class from the standard library. Original reason is to allow printing of the...
Definition: list.hpp:44
list & operator=(list &&other)=default
auto range() &
Make range of non-const begin to end iterators.
Definition: list.hpp:160
auto begin() &&
Inherited behavior of begin for rvalues.
Definition: list.hpp:120
auto end() &&
Inherited behavior of end for rvalues.
Definition: list.hpp:150
auto end() const &
Inherited behavior of end for const instance.
Definition: list.hpp:140
list(const list &other)=default
list(list &&other)=default
list(const ext::iterator_range< Iterator > &range)
Definition: list.hpp:91
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: list.hpp:100
auto range() const &
Make range of non-const begin to end iterators.
Definition: list.hpp:172
auto range() &&
Make range of move begin to end iterators.
Definition: list.hpp:184
auto end() &
Inherited behavior of end for non-const instance.
Definition: list.hpp:130
auto begin() const &
Inherited behavior of begin for const instance.
Definition: list.hpp:110
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