]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/type_traits/is_final.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / type_traits / is_final.hpp
1
2 // Copyright (c) 2014 Agustin Berge
3 //
4 // Use, modification and distribution are subject to the Boost Software License,
5 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt).
7 //
8 // See http://www.boost.org/libs/type_traits for most recent version including documentation.
9
10
11 #ifndef BOOST_TT_IS_FINAL_HPP_INCLUDED
12 #define BOOST_TT_IS_FINAL_HPP_INCLUDED
13
14 #include <boost/type_traits/intrinsics.hpp>
15 #include <boost/type_traits/integral_constant.hpp>
16 #ifdef BOOST_IS_FINAL
17 #include <boost/type_traits/remove_cv.hpp>
18 #endif
19
20 namespace boost {
21
22 #ifdef BOOST_IS_FINAL
23 template <class T> struct is_final : public integral_constant<bool, BOOST_IS_FINAL(typename remove_cv<T>::type)> {};
24 #else
25 template <class T> struct is_final : public integral_constant<bool, false> {};
26 #endif
27
28 } // namespace boost
29
30 #endif // BOOST_TT_IS_FINAL_HPP_INCLUDED