forked from boostorg/smart_ptr
Remove detail/operator_bool.hpp
This commit is contained in:
@@ -1,18 +0,0 @@
|
|||||||
// 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
|
|
||||||
|
|
||||||
explicit operator bool () const BOOST_SP_NOEXCEPT
|
|
||||||
{
|
|
||||||
return px != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// operator! is redundant, but some compilers need it
|
|
||||||
bool operator! () const BOOST_SP_NOEXCEPT
|
|
||||||
{
|
|
||||||
return px == 0;
|
|
||||||
}
|
|
@@ -163,8 +163,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
void swap(intrusive_ptr & rhs) BOOST_SP_NOEXCEPT
|
void swap(intrusive_ptr & rhs) BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
@@ -386,8 +386,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
long local_use_count() const BOOST_SP_NOEXCEPT
|
long local_use_count() const BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
@@ -85,8 +85,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
void swap(scoped_array & b) BOOST_SP_NOEXCEPT
|
void swap(scoped_array & b) BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
@@ -111,8 +111,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
void swap(scoped_ptr & b) BOOST_SP_NOEXCEPT
|
void swap(scoped_ptr & b) BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
@@ -176,8 +176,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool unique() const BOOST_SP_NOEXCEPT
|
bool unique() const BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
@@ -581,8 +581,10 @@ public:
|
|||||||
return px;
|
return px;
|
||||||
}
|
}
|
||||||
|
|
||||||
// implicit conversion to "bool"
|
explicit operator bool () const BOOST_SP_NOEXCEPT
|
||||||
#include <boost/smart_ptr/detail/operator_bool.hpp>
|
{
|
||||||
|
return px != 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool unique() const BOOST_SP_NOEXCEPT
|
bool unique() const BOOST_SP_NOEXCEPT
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user