GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
iterator_traits.h
Go to the documentation of this file.
1 
21 #ifndef GRPPI_COMMON_ITERATOR_TRAITS_H
22 #define GRPPI_COMMON_ITERATOR_TRAITS_H
23 
24 namespace grppi{
25  template<typename T, typename = void>
26  struct is_iterator
27  {
28  static constexpr bool value = false;
29  };
30 
31  template<typename T>
32  struct is_iterator<T, typename std::enable_if<!std::is_same<typename std::iterator_traits<T>::value_type, void>::value>::type>
33  {
34  static constexpr bool value = true;
35  };
36 }
37 
38 #endif
Definition: callable_traits.h:24
STL namespace.
Definition: iterator_traits.h:26
static constexpr bool value
Definition: iterator_traits.h:28