4 #ifndef CPPQEDCORE_UTILS_ALGORITHM_H_INCLUDED
5 #define CPPQEDCORE_UTILS_ALGORITHM_H_INCLUDED
7 #include <boost/range/numeric.hpp>
14 template<
typename SeqOfSeqs,
typename Out_Iterator>
21 static const Out_Iterator _(Out_Iterator iter,
const typename SeqOfSeqs::value_type& t) {
return std::copy(t.begin(),t.end(),iter);}
24 return boost::accumulate(sOs,out,Helper::_);
29 template<
typename SeqOfSeqs,
typename Out>
40 template<
typename Out,
typename SeqOfSeqs>
53 #endif // CPPQEDCORE_UTILS_ALGORITHM_H_INCLUDED
const Out concatenateGrow(const SeqOfSeqs &sOs)
Fills an empty (default-constructed) container with concatenated values taken subsequently from the i...
const Out_Iterator concatenateViaIterator(const SeqOfSeqs &sOs, Out_Iterator out)
Fills a container by output iterator with concatenated values taken subsequently from the input seque...
Namespace comprising otherwise hard-to-classify generic utilities.
const Out & concatenate(const SeqOfSeqs &sOs, Out &&out)
Fills a container of the necessary size with concatenated values taken subsequently from the input se...