Stan Math Library  2.20.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>
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 } // namespace stan
57 #endif
Template metaprogram indicates whether a type is vector_like.

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