Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Member Functions
ext::const_tuple_foreach< Types > Class Template Reference

Class providing begin and end methods to allow simple use of packed iterators in foreach variant of the for loop. More...

#include <foreach.hpp>

Public Member Functions

 const_tuple_foreach (const Types &... args)
 Constructor of foreach tuple pack helper. More...
 
const_tuple_foreach_iterator< typename Types::const_iterator ... > begin () const
 Getter of pack of begin iterators. More...
 
const_tuple_foreach_iterator< typename Types::const_iterator ... > end () const
 Getter of pack of end iterators. More...
 

Detailed Description

template<class ... Types>
class ext::const_tuple_foreach< Types >

Class providing begin and end methods to allow simple use of packed iterators in foreach variant of the for loop.

Template Parameters
Types... the types of begin/end source classes

Constructor & Destructor Documentation

◆ const_tuple_foreach()

template<class ... Types>
ext::const_tuple_foreach< Types >::const_tuple_foreach ( const Types &...  args)
inline

Constructor of foreach tuple pack helper.

Parameters
args... the actual begin/end source classes

Member Function Documentation

◆ begin()

template<class ... Types>
const_tuple_foreach_iterator< typename Types::const_iterator ... > ext::const_tuple_foreach< Types >::begin ( ) const
inline

Getter of pack of begin iterators.

Returns
the iterator tuple class

◆ end()

template<class ... Types>
const_tuple_foreach_iterator< typename Types::const_iterator ... > ext::const_tuple_foreach< Types >::end ( ) const
inline

Getter of pack of end iterators.

Returns
the iterator tuple class

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