| 12345678910111213141516171819 |
- #pragma once
- namespace math::vector {
- template <typename T> struct is_vector {
- static const constexpr bool value = false;
- };
- template <typename T, std::size_t N> struct is_vector<vector<T, N>> {
- static const constexpr bool value = true;
- };
- template <typename T, std::size_t R, std::size_t C>
- struct is_vector<matrix::matrix<T, R, C>> {
- static const constexpr bool value = true;
- };
- template <typename T> constexpr bool is_vector_v = is_vector<T>::value;
- }
|