GCC Middle and Back End API Reference
iterator_range< T > Struct Template Reference

#include <iterator-utils.h>

Public Types

using const_iterator = T
 

Public Member Functions

 iterator_range ()=default
 
 iterator_range (const T &begin, const T &end)
 
T begin () const
 
T end () const
 
 operator bool () const
 

Private Attributes

T m_begin
 
T m_end
 

Member Typedef Documentation

◆ const_iterator

template<typename T >
using iterator_range< T >::const_iterator = T

Constructor & Destructor Documentation

◆ iterator_range() [1/2]

template<typename T >
iterator_range< T >::iterator_range ( )
default

◆ iterator_range() [2/2]

template<typename T >
iterator_range< T >::iterator_range ( const T & begin,
const T & end )
inline

Member Function Documentation

◆ begin()

template<typename T >
T iterator_range< T >::begin ( ) const
inline

References iterator_range< T >::m_begin.

Referenced by iterate_safely().

◆ end()

template<typename T >
T iterator_range< T >::end ( ) const
inline

◆ operator bool()

template<typename T >
iterator_range< T >::operator bool ( ) const
inlineexplicit

Field Documentation

◆ m_begin

template<typename T >
T iterator_range< T >::m_begin
private

◆ m_end

template<typename T >
T iterator_range< T >::m_end
private

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