Stan Math Library  2.14.0
reverse mode automatic differentiation
is_vector.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_ARR_META_IS_VECTOR_HPP
2 #define STAN_MATH_PRIM_ARR_META_IS_VECTOR_HPP
3 
5 #include <vector>
6 
7 namespace stan {
8 
9  // FIXME: use boost::type_traits::remove_all_extents to
10  // extend to array/ptr types
11 
12  template <typename T>
13  struct is_vector<const T> {
15  typedef T type;
16  };
17  template <typename T>
18  struct is_vector<std::vector<T> > {
19  enum { value = 1 };
20  typedef T type;
21  };
22 }
23 #endif
24 

     [ Stan Home Page ] © 2011–2016, Stan Development Team.