Util--  1.1
Public Member Functions | Friends | List of all members
utilmm::iterator_sequence< It1, It2 > Class Template Reference

#include <utilmm/iterator_sequence.hh>

Inheritance diagram for utilmm::iterator_sequence< It1, It2 >:
Inheritance graph
[legend]
Collaboration diagram for utilmm::iterator_sequence< It1, It2 >:
Collaboration graph
[legend]

Public Member Functions

 iterator_sequence (It1 first, It1 first_end, It2 second_begin, It2 second)
 
 iterator_sequence ()
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<typename It1, typename It2>
class utilmm::iterator_sequence< It1, It2 >

The iterator_sequence template takes two iterator ranges and iterates in the two ranges as if they were a single sequence. The only constraint is that both iterator types have the same value_type.

Constructor & Destructor Documentation

◆ iterator_sequence() [1/2]

template<typename It1 , typename It2 >
utilmm::iterator_sequence< It1, It2 >::iterator_sequence ( It1  first,
It1  first_end,
It2  second_begin,
It2  second 
)
inline

Builds a new sequence Note that for an iterator sequence (fb, fe) + (sb, se),

  • the begin iterator is i_s(fb, fe, sb, sb)
  • the end iterator is i_s(fe, fe, se, se)
Parameters
firstthe position in the first range
first_endthe end of the first range
second_beginthe beginning of the second range
secondthe position in the second range

◆ iterator_sequence() [2/2]

template<typename It1 , typename It2 >
utilmm::iterator_sequence< It1, It2 >::iterator_sequence ( )
inline

Friends And Related Function Documentation

◆ boost::iterator_core_access

template<typename It1 , typename It2 >
friend class boost::iterator_core_access
friend

The documentation for this class was generated from the following file:

Generated on Wed Oct 17 2018 09:34:19 for Util-- by doxygen 1.8.13
SourceForge.net Project Page