Remove detail/operator_bool.hpp

This commit is contained in:
Peter Dimov
2024-09-25 12:49:13 +03:00
parent f11b931cfd
commit 000c7ae5ac
7 changed files with 24 additions and 30 deletions

View File

@@ -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;
}

View File

@@ -163,8 +163,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
void swap(intrusive_ptr & rhs) BOOST_SP_NOEXCEPT
{

View File

@@ -386,8 +386,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
long local_use_count() const BOOST_SP_NOEXCEPT
{

View File

@@ -85,8 +85,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
void swap(scoped_array & b) BOOST_SP_NOEXCEPT
{

View File

@@ -111,8 +111,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
void swap(scoped_ptr & b) BOOST_SP_NOEXCEPT
{

View File

@@ -176,8 +176,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
bool unique() const BOOST_SP_NOEXCEPT
{

View File

@@ -581,8 +581,10 @@ public:
return px;
}
// implicit conversion to "bool"
#include <boost/smart_ptr/detail/operator_bool.hpp>
explicit operator bool () const BOOST_SP_NOEXCEPT
{
return px != 0;
}
bool unique() const BOOST_SP_NOEXCEPT
{