File indexing completed on 2025-01-18 09:53:12
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #ifndef BOOST_TT_REMOVE_VOLATILE_HPP_INCLUDED
0012 #define BOOST_TT_REMOVE_VOLATILE_HPP_INCLUDED
0013
0014 #include <boost/config.hpp>
0015 #include <boost/detail/workaround.hpp>
0016 #include <cstddef> // size_t
0017
0018 namespace boost {
0019
0020
0021 template <class T> struct remove_volatile{ typedef T type; };
0022 template <class T> struct remove_volatile<T volatile>{ typedef T type; };
0023
0024 #if !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS)
0025 template <class T, std::size_t N> struct remove_volatile<T volatile[N]>{ typedef T type[N]; };
0026 #if !BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600) && !defined(__IBMCPP__) && !BOOST_WORKAROUND(__DMC__, BOOST_TESTED_AT(0x840))
0027 template <class T> struct remove_volatile<T volatile[]>{ typedef T type[]; };
0028 #endif
0029 #endif
0030
0031 #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
0032
0033 template <class T> using remove_volatile_t = typename remove_volatile<T>::type;
0034
0035 #endif
0036
0037 }
0038
0039 #endif