proxygen
folly::pushmi::for_each_fn Struct Reference

#include <for_each.h>

Classes

struct  fn
 
struct  identity
 
struct  zero
 

Public Member Functions

template<class ExecutionPolicy , class RandomAccessIterator , class Function >
void operator() (ExecutionPolicy &&policy, RandomAccessIterator begin, RandomAccessIterator end, Function f) const
 

Detailed Description

Definition at line 25 of file for_each.h.

Member Function Documentation

template<class ExecutionPolicy , class RandomAccessIterator , class Function >
void folly::pushmi::for_each_fn::operator() ( ExecutionPolicy &&  policy,
RandomAccessIterator  begin,
RandomAccessIterator  end,
Function  f 
) const
inline

Definition at line 49 of file for_each.h.

References folly::test::begin(), folly::pushmi::operators::blocking_submit, folly::pushmi::operators::bulk, folly::test::end(), folly::pushmi::for_each, and folly::pushmi::operators::just.

53  {
54  operators::just(0) |
56  fn<Function>{f}, begin, end, policy, identity{}, zero{}) |
58  }
auto begin(TestAdlIterable &instance)
Definition: ForeachTest.cpp:56
PUSHMI_INLINE_VAR constexpr detail::blocking_submit_fn blocking_submit
Definition: submit.h:389
auto end(TestAdlIterable &instance)
Definition: ForeachTest.cpp:62
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::bulk_fn bulk
PUSHMI_INLINE_VAR constexpr struct folly::pushmi::operators::just_fn just

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