DASH  0.3.0
Apply.h
1 #ifndef DASH__VIEW__APPLY_H__INCLUDED
2 #define DASH__VIEW__APPLY_H__INCLUDED
3 
4 #include <dash/Types.h>
5 #include <dash/Range.h>
6 
7 #include <dash/view/ViewMod.h>
8 
9 
10 namespace dash {
11 
17 template <class ViewTypeA, class ViewTypeB>
18 constexpr auto apply(
19  ViewTypeA & view_a,
20  ViewTypeB & view_b) -> decltype(view_a.apply(view_b)) {
21  return view_a.apply(view_b);
22 }
23 
27 template <class ViewType>
28 constexpr auto apply(
29  const ViewType & view) -> decltype(view.apply()) {
30  return view.apply();
31 }
32 
33 } // namespace dash
34 
35 #endif // DASH__VIEW__APPLY_H__INCLUDED
This class is a simple memory pool which holds allocates elements of size ValueType.
Definition: AllOf.h:8
constexpr auto apply(ViewTypeA &view_a, ViewTypeB &view_b) -> decltype(view_a.apply(view_b))
Inverse operation to dash::domain.
Definition: Apply.h:18