proxygen
folly::detail::RangeEnumerator< Range > Class Template Reference

#include <Enumerate.h>

Public Member Functions

 RangeEnumerator (Range &&r)
 
Enumerator< BeginIteratorTypebegin ()
 
Enumerator< EndIteratorTypeend ()
 

Private Types

using BeginIteratorType = decltype(std::declval< Range >().begin())
 
using EndIteratorType = decltype(std::declval< Range >().end())
 

Private Attributes

Range r_
 

Detailed Description

template<class Range>
class folly::detail::RangeEnumerator< Range >

Definition at line 148 of file Enumerate.h.

Member Typedef Documentation

template<class Range >
using folly::detail::RangeEnumerator< Range >::BeginIteratorType = decltype(std::declval<Range>().begin())
private

Definition at line 150 of file Enumerate.h.

template<class Range >
using folly::detail::RangeEnumerator< Range >::EndIteratorType = decltype(std::declval<Range>().end())
private

Definition at line 151 of file Enumerate.h.

Constructor & Destructor Documentation

template<class Range >
folly::detail::RangeEnumerator< Range >::RangeEnumerator ( Range &&  r)
inlineexplicit

Definition at line 154 of file Enumerate.h.

154 : r_(std::forward<Range>(r)) {}

Member Function Documentation

template<class Range >
Enumerator<BeginIteratorType> folly::detail::RangeEnumerator< Range >::begin ( )
inline

Definition at line 156 of file Enumerate.h.

References folly::Range< Iter >::begin().

156  {
157  return Enumerator<BeginIteratorType>(r_.begin());
158  }
constexpr Iter begin() const
Definition: Range.h:452
template<class Range >
Enumerator<EndIteratorType> folly::detail::RangeEnumerator< Range >::end ( )
inline

Definition at line 159 of file Enumerate.h.

References folly::Range< Iter >::end().

159  {
160  return Enumerator<EndIteratorType>(r_.end());
161  }
constexpr Iter end() const
Definition: Range.h:455

Member Data Documentation

template<class Range >
Range folly::detail::RangeEnumerator< Range >::r_
private

Definition at line 149 of file Enumerate.h.


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