]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/icl/include/boost/icl/type_traits/has_inverse.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / icl / include / boost / icl / type_traits / has_inverse.hpp
CommitLineData
7c673cae
FG
1/*-----------------------------------------------------------------------------+
2Copyright (c) 2008-2009: Joachim Faulhaber
3+------------------------------------------------------------------------------+
4 Distributed under the Boost Software License, Version 1.0.
5 (See accompanying file LICENCE.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt)
7+-----------------------------------------------------------------------------*/
8#ifndef BOOST_ICL_TYPE_TRAITS_HAS_INVERSE_HPP_JOFA_090205
9#define BOOST_ICL_TYPE_TRAITS_HAS_INVERSE_HPP_JOFA_090205
10
11#include <boost/type_traits/is_signed.hpp>
12#include <boost/type_traits/is_floating_point.hpp>
13
14namespace boost{ namespace icl
15{
16
17 template <class Type> struct has_inverse
18 {
19 typedef has_inverse<Type> type;
20 BOOST_STATIC_CONSTANT(bool,
21 value = ( boost::is_signed<Type>::value
22 || is_floating_point<Type>::value ) );
23 };
24
25}} // namespace boost icl
26
27#endif // BOOST_ICL_TYPE_TRAITS_HAS_INVERSE_HPP_JOFA_090205
28
29