|
||||
File indexing completed on 2024-11-15 09:33:10
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_SAME_HPP_INCLUDED 0022 #define BOOST_TT_IS_SAME_HPP_INCLUDED 0023 0024 #include <boost/type_traits/integral_constant.hpp> 0025 0026 namespace boost { 0027 0028 0029 template <class T, class U> struct is_same : public false_type {}; 0030 template <class T> struct is_same<T,T> : public true_type {}; 0031 #if BOOST_WORKAROUND(BOOST_BORLANDC, < 0x600) 0032 // without this, Borland's compiler gives the wrong answer for 0033 // references to arrays: 0034 template <class T> struct is_same<T&, T&> : public true_type{}; 0035 #endif 0036 0037 0038 } // namespace boost 0039 0040 #endif // BOOST_TT_IS_SAME_HPP_INCLUDED 0041
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |