GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
pack_traits.h
Go to the documentation of this file.
1 
21 #ifndef GRPPI_COMMON_PACK_TRAITS_H
22 #define GRPPI_COMMON_PACK_TRAITS_H
23 
24 namespace grppi {
25 
26 namespace internal {
27 
28 template <int Index, typename ... T>
29 using requires_index_last =
30  std::enable_if_t<(Index == (sizeof...(T) - 1)), int>;
31 
32 template <int Index, typename ... T>
34  std::enable_if_t<(Index < sizeof...(T) - 1), int>;
35 
36 } // end namespace internal
37 
38 } // end namespace grppi
39 
40 #endif
Definition: callable_traits.h:26
std::enable_if_t<(Index< sizeof...(T)-1), int > requires_index_not_last
Definition: pack_traits.h:34
std::enable_if_t<(Index==(sizeof...(T)-1)), int > requires_index_last
Definition: pack_traits.h:30