Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-15 10:09:49

0001 
0002 //  (C) Copyright Dave Abrahams, Steve Cleary, Beman Dawes, 
0003 //      Howard Hinnant and John Maddock 2000. 
0004 //  (C) Copyright Mat Marcus, Jesse Jones and Adobe Systems Inc 2001
0005 
0006 //  Use, modification and distribution are subject to the Boost Software License,
0007 //  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
0008 //  http://www.boost.org/LICENSE_1_0.txt).
0009 //
0010 //  See http://www.boost.org/libs/type_traits for most recent version including documentation.
0011 
0012 //    Fixed is_pointer, is_reference, is_const, is_volatile, is_same, 
0013 //    is_member_pointer based on the Simulated Partial Specialization work 
0014 //    of Mat Marcus and Jesse Jones. See  http://opensource.adobe.com or 
0015 //    http://groups.yahoo.com/group/boost/message/5441 
0016 //    Some workarounds in here use ideas suggested from "Generic<Programming>: 
0017 //    Mappings between Types and Values" 
0018 //    by Andrei Alexandrescu (see http://www.cuj.com/experts/1810/alexandr.html).
0019 
0020 
0021 #ifndef BOOST_TT_IS_POINTER_HPP_INCLUDED
0022 #define BOOST_TT_IS_POINTER_HPP_INCLUDED
0023 
0024 #include <boost/type_traits/integral_constant.hpp>
0025 
0026 namespace boost {
0027 
0028 #if defined( BOOST_CODEGEARC )
0029 template <class T> struct is_pointer : public integral_constant<bool, __is_pointer(T)>{};
0030 #else
0031 template <class T> struct is_pointer : public false_type{};
0032 template <class T> struct is_pointer<T*> : public true_type{};
0033 template <class T> struct is_pointer<T*const> : public true_type{};
0034 template <class T> struct is_pointer<T*const volatile> : public true_type{};
0035 template <class T> struct is_pointer<T*volatile> : public true_type{};
0036 
0037 #ifdef BOOST_MSVC
0038 template <class T> struct is_pointer<T const> : public is_pointer<T>{};
0039 template <class T> struct is_pointer<T const volatile> : public is_pointer<T>{};
0040 template <class T> struct is_pointer<T volatile> : public is_pointer<T>{};
0041 #endif
0042 
0043 #endif
0044 
0045 } // namespace boost
0046 
0047 #endif // BOOST_TT_IS_POINTER_HPP_INCLUDED