CGRA-ME
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
tuple_get_range< get_index, Range > Struct Template Reference

#include <Collections.h>

Classes

struct  iterator
 

Public Types

using Biter = std::remove_cv_t< std::remove_reference_t< decltype(r.begin())> >
 
using Eiter = std::remove_cv_t< std::remove_reference_t< decltype(r.end())> >
 

Public Member Functions

iterator< Biterbegin ()
 
iterator< Eiterend ()
 
iterator< Biterbegin () const
 
iterator< Eiterend () const
 

Public Attributes

Range r
 

Detailed Description

template<int get_index, typename Range>
struct tuple_get_range< get_index, Range >

Make a range of tuples to appear as a range of just one element of the tuples A particular use case is for easy iteration of key and value lists of associative types like std::*map

Definition at line 72 of file Collections.h.

Member Typedef Documentation

◆ Biter

template<int get_index, typename Range >
using tuple_get_range< get_index, Range >::Biter = std::remove_cv_t<std::remove_reference_t<decltype(r.begin())> >

Definition at line 74 of file Collections.h.

◆ Eiter

template<int get_index, typename Range >
using tuple_get_range< get_index, Range >::Eiter = std::remove_cv_t<std::remove_reference_t<decltype(r.end())> >

Definition at line 75 of file Collections.h.

Member Function Documentation

◆ begin() [1/2]

template<int get_index, typename Range >
iterator<Biter> tuple_get_range< get_index, Range >::begin ( )
inline

Definition at line 94 of file Collections.h.

◆ begin() [2/2]

template<int get_index, typename Range >
iterator<Biter> tuple_get_range< get_index, Range >::begin ( ) const
inline

Definition at line 96 of file Collections.h.

◆ end() [1/2]

template<int get_index, typename Range >
iterator<Eiter> tuple_get_range< get_index, Range >::end ( )
inline

Definition at line 95 of file Collections.h.

◆ end() [2/2]

template<int get_index, typename Range >
iterator<Eiter> tuple_get_range< get_index, Range >::end ( ) const
inline

Definition at line 97 of file Collections.h.

Member Data Documentation

◆ r

template<int get_index, typename Range >
Range tuple_get_range< get_index, Range >::r

Definition at line 73 of file Collections.h.


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