proxygen
folly::gen::detail::RangeImpl< Value > Class Template Reference

#include <Base-inl.h>

Public Member Functions

 RangeImpl (Value end)
 
bool test (const Value &current) const
 
void step (Value &current) const
 

Static Public Attributes

static constexpr bool infinite = false
 

Private Attributes

Value end_
 

Detailed Description

template<class Value>
class folly::gen::detail::RangeImpl< Value >

Sequence implementations (range, sequence, infinite, with/without step)

Definition at line 315 of file Base-inl.h.

Constructor & Destructor Documentation

template<class Value>
folly::gen::detail::RangeImpl< Value >::RangeImpl ( Value  end)
inlineexplicit

Definition at line 319 of file Base-inl.h.

319 : end_(std::move(end)) {}
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62

Member Function Documentation

template<class Value>
void folly::gen::detail::RangeImpl< Value >::step ( Value &  current) const
inline

Definition at line 323 of file Base-inl.h.

References current.

323  {
324  ++current;
325  }
int current
template<class Value>
bool folly::gen::detail::RangeImpl< Value >::test ( const Value &  current) const
inline

Definition at line 320 of file Base-inl.h.

References end_.

320  {
321  return current < end_;
322  }
int current

Member Data Documentation

template<class Value>
Value folly::gen::detail::RangeImpl< Value >::end_
private

Definition at line 316 of file Base-inl.h.

template<class Value>
constexpr bool folly::gen::detail::RangeImpl< Value >::infinite = false
static

Definition at line 326 of file Base-inl.h.


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