Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:51:43

0001 #ifndef BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED
0002 #define BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED
0003 
0004 // MS compatible compilers support #pragma once
0005 
0006 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
0007 # pragma once
0008 #endif
0009 
0010 //  detail/sp_nullptr_t.hpp
0011 //
0012 //  Copyright 2013 Peter Dimov
0013 //
0014 //  Distributed under the Boost Software License, Version 1.0.
0015 //  See accompanying file LICENSE_1_0.txt or copy at
0016 //  http://www.boost.org/LICENSE_1_0.txt
0017 
0018 #include <boost/config.hpp>
0019 #include <cstddef>
0020 
0021 #if !defined( BOOST_NO_CXX11_NULLPTR )
0022 
0023 namespace boost
0024 {
0025 
0026 namespace detail
0027 {
0028 
0029 #if !defined( BOOST_NO_CXX11_DECLTYPE ) && ( ( defined( __clang__ ) && !defined( _LIBCPP_VERSION ) ) || defined( __INTEL_COMPILER ) )
0030 
0031     typedef decltype(nullptr) sp_nullptr_t;
0032 
0033 #else
0034 
0035     typedef std::nullptr_t sp_nullptr_t;
0036 
0037 #endif
0038 
0039 } // namespace detail
0040 
0041 } // namespace boost
0042 
0043 #endif // !defined( BOOST_NO_CXX11_NULLPTR )
0044 
0045 #endif  // #ifndef BOOST_SMART_PTR_DETAIL_SP_NULLPTR_T_HPP_INCLUDED