]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/qvm/mat_traits.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / qvm / mat_traits.hpp
1 #ifndef BOOST_QVM_TRAITS_HPP_INCLUDED
2 #define BOOST_QVM_TRAITS_HPP_INCLUDED
3
4 // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
5
6 // Distributed under the Boost Software License, Version 1.0. (See accompanying
7 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8
9 #include <boost/qvm/is_scalar.hpp>
10
11 namespace boost { namespace qvm {
12
13 template <class M>
14 struct
15 mat_traits
16 {
17 static int const rows=0;
18 static int const cols=0;
19 typedef void scalar_type;
20 };
21
22 template <class T>
23 struct
24 is_mat
25 {
26 static bool const value = is_scalar<typename mat_traits<T>::scalar_type>::value && mat_traits<T>::rows>0 && mat_traits<T>::cols>0;
27 };
28
29 } }
30
31 #endif