is_std_vector.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_UTIL_IS_STD_VECTOR_HPP
14 #define MLPACK_CORE_UTIL_IS_STD_VECTOR_HPP
15 
16 #include <vector>
17 
18 namespace mlpack {
19 namespace util {
20 
22 template<typename T>
23 struct IsStdVector { const static bool value = false; };
24 
26 template<typename T, typename A>
27 struct IsStdVector<std::vector<T, A>> { const static bool value = true; };
28 
29 } // namespace util
30 } // namespace mlpack
31 
32 #endif
static const bool value
Linear algebra utility functions, generally performed on matrices or vectors.
Metaprogramming structure for vector detection.