Sha256: 8a8efaf338845071a4cc162bab1696629e7866069c918d78e272bd5b1d4e390f

Contents?: true

Size: 1.6 KB

Versions: 66

Compression:

Stored size: 1.6 KB

Contents

//  This header intentionally has no include guards.
//
//  Copyright (c) 2001-2009, 2012 Peter Dimov
//
//  Distributed under the Boost Software License, Version 1.0.
//  See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt

#if !defined( BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS ) && !defined( BOOST_NO_CXX11_NULLPTR )

    explicit operator bool () const BOOST_NOEXCEPT
    {
        return px != 0;
    }

#elif ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, < 0x570) ) || defined(__CINT__)

    operator bool () const BOOST_NOEXCEPT
    {
        return px != 0;
    }

#elif defined( _MANAGED )

    static void unspecified_bool( this_type*** )
    {
    }

    typedef void (*unspecified_bool_type)( this_type*** );

    operator unspecified_bool_type() const BOOST_NOEXCEPT
    {
        return px == 0? 0: unspecified_bool;
    }

#elif \
    ( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, < 0x3200) ) || \
    ( defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 304) ) || \
    ( defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) )

    typedef element_type * (this_type::*unspecified_bool_type)() const;

    operator unspecified_bool_type() const BOOST_NOEXCEPT
    {
        return px == 0? 0: &this_type::get;
    }

#else

    typedef element_type * this_type::*unspecified_bool_type;

    operator unspecified_bool_type() const BOOST_NOEXCEPT
    {
        return px == 0? 0: &this_type::px;
    }

#endif

    // operator! is redundant, but some compilers need it
    bool operator! () const BOOST_NOEXCEPT
    {
        return px == 0;
    }

Version data entries

66 entries across 66 versions & 2 rubygems

Version Path
passenger-5.0.24 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.23 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.22 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-4.0.60 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.21 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.20 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.19 src/cxx_supportlib/vendor-modified/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.18 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.17 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.16 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.15 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.14 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.13 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.11 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.10 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.9 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.8 ext/boost/smart_ptr/detail/operator_bool.hpp
buncher-1.0.5 ext/boost/1.57.0/include/boost//smart_ptr/detail/operator_bool.hpp
passenger-5.0.7 ext/boost/smart_ptr/detail/operator_bool.hpp
passenger-5.0.6 ext/boost/smart_ptr/detail/operator_bool.hpp