proxygen
folly::gen::detail::RangeWithStepImpl< Value, Distance > Class Template Reference

#include <Base-inl.h>

Public Member Functions

 RangeWithStepImpl (Value end, Distance step)
 
bool test (const Value &current) const
 
void step (Value &current) const
 

Static Public Attributes

static constexpr bool infinite = false
 

Private Attributes

Value end_
 
Distance step_
 

Detailed Description

template<class Value, class Distance>
class folly::gen::detail::RangeWithStepImpl< Value, Distance >

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

Constructor & Destructor Documentation

template<class Value, class Distance>
folly::gen::detail::RangeWithStepImpl< Value, Distance >::RangeWithStepImpl ( Value  end,
Distance  step 
)
inlineexplicit

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

void step(Value &current) const
Definition: Base-inl.h:340
constexpr detail::Map< Move > move
Definition: Base-inl.h:2567
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62

Member Function Documentation

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

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

340  {
341  current += step_;
342  }
int current
template<class Value, class Distance>
bool folly::gen::detail::RangeWithStepImpl< Value, Distance >::test ( const Value &  current) const
inline

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

References end_.

337  {
338  return current < end_;
339  }
int current

Member Data Documentation

template<class Value, class Distance>
Value folly::gen::detail::RangeWithStepImpl< Value, Distance >::end_
private

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

template<class Value, class Distance>
constexpr bool folly::gen::detail::RangeWithStepImpl< Value, Distance >::infinite = false
static

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

template<class Value, class Distance>
Distance folly::gen::detail::RangeWithStepImpl< Value, Distance >::step_
private

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


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