]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/multiprecision/traits/extract_exponent_type.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / multiprecision / traits / extract_exponent_type.hpp
1 ///////////////////////////////////////////////////////////////
2 // Copyright 2012 John Maddock. Distributed under the Boost
3 // Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
5
6 #ifndef BOOST_MATH_EXTRACT_EXPONENT_HPP
7 #define BOOST_MATH_EXTRACT_EXPONENT_HPP
8
9 #include <boost/multiprecision/number.hpp>
10
11 namespace boost {
12 namespace multiprecision {
13 namespace backends {
14
15 template <class Backend, int cat>
16 struct extract_exponent_type
17 {
18 using type = int;
19 };
20 template <class Backend>
21 struct extract_exponent_type<Backend, number_kind_floating_point>
22 {
23 using type = typename Backend::exponent_type;
24 };
25
26 }}} // namespace boost::multiprecision::backends
27
28 #endif