]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/safe_numerics/concept/numeric.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / safe_numerics / concept / numeric.hpp
1 #ifndef BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
2 #define BOOST_NUMERIC_CONCEPT_NUMERIC_HPP
3
4 // Copyright (c) 2012 Robert Ramey
5 //
6 // Distributed under the Boost Software License, Version 1.0. (See
7 // accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
9
10 #include <limits>
11
12 namespace boost {
13 namespace safe_numerics {
14
15 template<class T>
16 struct Numeric {
17 constexpr static bool value = std::numeric_limits<T>::is_specialized;
18 constexpr operator bool (){
19 return value;
20 }
21 };
22
23 } // safe_numerics
24 } // boost
25
26 #endif // BOOST_NUMERIC_CONCEPT_NUMERIC_HPP