mirror of
https://github.com/boostorg/ptr_container.git
synced 2026-01-19 04:22:16 +00:00
Remove trailing whitespace
This commit is contained in:
@@ -109,7 +109,7 @@ namespace ptr_container_detail
|
||||
: base_type( first, last, hash, pred, a )
|
||||
{ }
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
explicit associative_ptr_container( std::auto_ptr<PtrContainer> r )
|
||||
: base_type( r )
|
||||
@@ -131,7 +131,7 @@ namespace ptr_container_detail
|
||||
: base_type( r.begin(), r.end(), container_type() )
|
||||
{ }
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
associative_ptr_container& operator=( std::auto_ptr<PtrContainer> r ) // nothrow
|
||||
{
|
||||
|
||||
@@ -352,18 +352,18 @@ namespace ptr_container_detail
|
||||
: c_( a )
|
||||
{ }
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
explicit reversible_ptr_container( std::auto_ptr<PtrContainer> clone )
|
||||
{
|
||||
swap( *clone );
|
||||
explicit reversible_ptr_container( std::auto_ptr<PtrContainer> clone )
|
||||
{
|
||||
swap( *clone );
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class PtrContainer >
|
||||
explicit reversible_ptr_container( std::unique_ptr<PtrContainer> clone )
|
||||
{
|
||||
swap( *clone );
|
||||
explicit reversible_ptr_container( std::unique_ptr<PtrContainer> clone )
|
||||
{
|
||||
swap( *clone );
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -378,7 +378,7 @@ namespace ptr_container_detail
|
||||
constructor_impl( r.begin(), r.end(), std::forward_iterator_tag() );
|
||||
}
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
reversible_ptr_container& operator=( std::auto_ptr<PtrContainer> clone ) // nothrow
|
||||
{
|
||||
@@ -613,7 +613,7 @@ namespace ptr_container_detail
|
||||
return res;
|
||||
}
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class U >
|
||||
iterator insert( iterator before, std::auto_ptr<U> x )
|
||||
{
|
||||
@@ -684,18 +684,18 @@ namespace ptr_container_detail
|
||||
return boost::ptr_container_detail::move( old );
|
||||
}
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class U >
|
||||
auto_type replace( iterator where, std::auto_ptr<U> x )
|
||||
{
|
||||
return replace( where, x.release() );
|
||||
return replace( where, x.release() );
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class U >
|
||||
auto_type replace( iterator where, std::unique_ptr<U> x )
|
||||
{
|
||||
return replace( where, x.release() );
|
||||
return replace( where, x.release() );
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -712,7 +712,7 @@ namespace ptr_container_detail
|
||||
return boost::ptr_container_detail::move( old );
|
||||
}
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class U >
|
||||
auto_type replace( size_type idx, std::auto_ptr<U> x )
|
||||
{
|
||||
@@ -742,7 +742,7 @@ namespace ptr_container_detail
|
||||
using base_type::release;
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#define BOOST_PTR_CONTAINER_COPY_AND_ASSIGN_AUTO( PC, base_type, this_type ) \
|
||||
explicit PC( std::auto_ptr<this_type> r ) \
|
||||
: base_type ( r ) { } \
|
||||
@@ -770,7 +770,7 @@ namespace ptr_container_detail
|
||||
#define BOOST_PTR_CONTAINER_COPY_AND_ASSIGN_UNIQUE( PC, base_type, this_type )
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#define BOOST_PTR_CONTAINER_RELEASE_AND_CLONE( this_type ) \
|
||||
std::auto_ptr<this_type> release() \
|
||||
{ \
|
||||
@@ -799,9 +799,9 @@ namespace ptr_container_detail
|
||||
#else
|
||||
#define BOOST_PTR_CONTAINER_RELEASE_AND_CLONE( this_type )
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// two-phase lookup of template functions
|
||||
// two-phase lookup of template functions
|
||||
// is buggy on most compilers, so we use a macro instead
|
||||
//
|
||||
#define BOOST_PTR_CONTAINER_DEFINE_RELEASE_AND_CLONE( PC, base_type, this_type ) \
|
||||
|
||||
@@ -173,7 +173,7 @@ namespace boost
|
||||
for( size_t i = 0; i != N; ++i )
|
||||
{
|
||||
if( !this->is_null(i) )
|
||||
pa.replace( i, pa.null_policy_allocate_clone( &(*this)[i] ) );
|
||||
pa.replace( i, pa.null_policy_allocate_clone( &(*this)[i] ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -305,14 +305,14 @@ namespace boost
|
||||
template< class U >
|
||||
void push_back( std::auto_ptr<U> ptr ) // nothrow
|
||||
{
|
||||
push_back( ptr.release() );
|
||||
push_back( ptr.release() );
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class U >
|
||||
void push_back( std::unique_ptr<U> ptr ) // nothrow
|
||||
{
|
||||
push_back( ptr.release() );
|
||||
push_back( ptr.release() );
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -331,14 +331,14 @@ namespace boost
|
||||
template< class U >
|
||||
void push_front( std::auto_ptr<U> ptr ) // nothrow
|
||||
{
|
||||
push_front( ptr.release() );
|
||||
push_front( ptr.release() );
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class U >
|
||||
void push_front( std::unique_ptr<U> ptr ) // nothrow
|
||||
{
|
||||
push_front( ptr.release() );
|
||||
push_front( ptr.release() );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -267,12 +267,12 @@ namespace ptr_container_detail
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
explicit ptr_map_adapter_base( std::auto_ptr<PtrContainer> clone )
|
||||
explicit ptr_map_adapter_base( std::auto_ptr<PtrContainer> clone )
|
||||
: base_type( clone )
|
||||
{ }
|
||||
|
||||
|
||||
template< typename PtrContainer >
|
||||
ptr_map_adapter_base& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
ptr_map_adapter_base& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( clone );
|
||||
return *this;
|
||||
@@ -280,16 +280,16 @@ namespace ptr_container_detail
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class PtrContainer >
|
||||
explicit ptr_map_adapter_base( std::unique_ptr<PtrContainer> clone )
|
||||
explicit ptr_map_adapter_base( std::unique_ptr<PtrContainer> clone )
|
||||
: base_type( std::move( clone ) )
|
||||
{ }
|
||||
|
||||
|
||||
template< typename PtrContainer >
|
||||
ptr_map_adapter_base& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
ptr_map_adapter_base& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( std::move( clone ) );
|
||||
return *this;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
iterator find( const key_type& x )
|
||||
@@ -538,7 +538,7 @@ namespace ptr_container_detail
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class U >
|
||||
ptr_map_adapter& operator=( std::auto_ptr<U> r )
|
||||
{
|
||||
{
|
||||
base_type::operator=( r );
|
||||
return *this;
|
||||
}
|
||||
@@ -546,7 +546,7 @@ namespace ptr_container_detail
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class U >
|
||||
ptr_map_adapter& operator=( std::unique_ptr<U> r )
|
||||
{
|
||||
{
|
||||
base_type::operator=( std::move( r ) );
|
||||
return *this;
|
||||
}
|
||||
|
||||
@@ -246,7 +246,7 @@ namespace ptr_container_detail
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class PtrContainer >
|
||||
ptr_sequence_adapter& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
ptr_sequence_adapter& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( clone );
|
||||
return *this;
|
||||
@@ -254,7 +254,7 @@ namespace ptr_container_detail
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class PtrContainer >
|
||||
ptr_sequence_adapter& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
ptr_sequence_adapter& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( std::move( clone ) );
|
||||
return *this;
|
||||
|
||||
@@ -209,7 +209,7 @@ namespace ptr_container_detail
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< typename PtrContainer >
|
||||
ptr_set_adapter_base& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
ptr_set_adapter_base& operator=( std::auto_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( clone );
|
||||
return *this;
|
||||
@@ -217,7 +217,7 @@ namespace ptr_container_detail
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< typename PtrContainer >
|
||||
ptr_set_adapter_base& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
ptr_set_adapter_base& operator=( std::unique_ptr<PtrContainer> clone )
|
||||
{
|
||||
base_type::operator=( std::move( clone ) );
|
||||
return *this;
|
||||
@@ -439,14 +439,14 @@ namespace ptr_container_detail
|
||||
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
template< class T >
|
||||
void operator=( std::auto_ptr<T> r )
|
||||
void operator=( std::auto_ptr<T> r )
|
||||
{
|
||||
base_type::operator=( r );
|
||||
}
|
||||
#endif
|
||||
#ifndef BOOST_NO_CXX11_SMART_PTR
|
||||
template< class T >
|
||||
void operator=( std::unique_ptr<T> r )
|
||||
void operator=( std::unique_ptr<T> r )
|
||||
{
|
||||
base_type::operator=( std::move( r ) );
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ void ptr_set_test()
|
||||
T* t = new T;
|
||||
c.insert( c.end(), t );
|
||||
c.insert( new T );
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
#ifndef BOOST_NO_AUTO_PTR
|
||||
c.insert( c.end(), std::auto_ptr<T>( new T ) );
|
||||
std::auto_ptr<T> ap( new T );
|
||||
c.insert( ap );
|
||||
|
||||
Reference in New Issue
Block a user