Stan Math Library  2.15.0
reverse mode automatic differentiation
is_vector_like.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_META_IS_VECTOR_LIKE_HPP
2 #define STAN_MATH_PRIM_SCAL_META_IS_VECTOR_LIKE_HPP
3 
5 
6 namespace stan {
7 
20  template <typename T>
21  struct is_vector_like {
23  };
24 
35  template <typename T>
36  struct is_vector_like<T*> {
37  enum { value = true };
38  };
39 
52  template <typename T>
53  struct is_vector_like<const T> {
55  };
56 }
57 #endif
58 
Template metaprogram indicates whether a type is vector_like.

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