LLVM  8.0.1
Public Member Functions | List of all members
llvm::iterator_range< IteratorT > Class Template Reference

A range adaptor for a pair of iterators. More...

#include "llvm/ADT/iterator_range.h"

Public Member Functions

template<typename Container >
 iterator_range (Container &&c)
 
 iterator_range (IteratorT begin_iterator, IteratorT end_iterator)
 
IteratorT begin () const
 
IteratorT end () const
 

Detailed Description

template<typename IteratorT>
class llvm::iterator_range< IteratorT >

A range adaptor for a pair of iterators.

This just wraps two iterators into a range-compatible interface. Nothing fancy at all.

Definition at line 32 of file iterator_range.h.

Constructor & Destructor Documentation

◆ iterator_range() [1/2]

template<typename IteratorT>
template<typename Container >
llvm::iterator_range< IteratorT >::iterator_range ( Container &&  c)
inline

Definition at line 39 of file iterator_range.h.

◆ iterator_range() [2/2]

template<typename IteratorT>
llvm::iterator_range< IteratorT >::iterator_range ( IteratorT  begin_iterator,
IteratorT  end_iterator 
)
inline

Definition at line 42 of file iterator_range.h.

Member Function Documentation

◆ begin()

template<typename IteratorT>
IteratorT llvm::iterator_range< IteratorT >::begin ( ) const
inline

◆ end()

template<typename IteratorT>
IteratorT llvm::iterator_range< IteratorT >::end ( ) const
inline

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