Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:12

0001 
0002 //  (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, Howard
0003 //  Hinnant & John Maddock 2000.  
0004 //  Use, modification and distribution are subject to the Boost Software License,
0005 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0006 //  http://www.boost.org/LICENSE_1_0.txt).
0007 //
0008 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
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    //  convert a type T to a non-cv-qualified type - remove_volatile<T>
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 } // namespace boost
0038 
0039 #endif // BOOST_TT_REMOVE_VOLATILE_HPP_INCLUDED