mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Remove the parameter-less overloads of find_first() and find_first_off()
Reason: We can use a default argument, instead, which is what dynamic_bitset usually does.
This commit is contained in:
@@ -1163,28 +1163,6 @@ public:
|
||||
// -----------------------------------------------------------------------
|
||||
bool intersects( const dynamic_bitset & b ) const;
|
||||
|
||||
//! Finds the first set bit in `*this`, if any.
|
||||
//!
|
||||
//! \return
|
||||
//! The lowest index `i` such that bit `i` is set in `*this`, or
|
||||
//! `npos` if `*this` has no bits set.
|
||||
//!
|
||||
//! \par Throws
|
||||
//! Nothing.
|
||||
// -----------------------------------------------------------------------
|
||||
size_type find_first() const;
|
||||
|
||||
//! Finds the first unset bit in `*this`, if any.
|
||||
//!
|
||||
//! \return
|
||||
//! The lowest index `i` such that bit `i` is unset in `*this`,
|
||||
//! or `npos` if no such index exists.
|
||||
//!
|
||||
//! \par Throws
|
||||
//! Nothing.
|
||||
// -----------------------------------------------------------------------
|
||||
size_type find_first_off() const;
|
||||
|
||||
//! Finds the first set bit in `*this` with an index >= `pos`,
|
||||
//! if any.
|
||||
//!
|
||||
@@ -1196,7 +1174,7 @@ public:
|
||||
//! \par Throws
|
||||
//! Nothing.
|
||||
// -----------------------------------------------------------------------
|
||||
size_type find_first( size_type pos ) const;
|
||||
size_type find_first( size_type pos = 0 ) const;
|
||||
|
||||
//! Finds the first unset bit in `*this` with an index >= `pos`,
|
||||
//! if any.
|
||||
@@ -1209,7 +1187,7 @@ public:
|
||||
//! \par Throws
|
||||
//! Nothing.
|
||||
// -----------------------------------------------------------------------
|
||||
size_type find_first_off( size_type pos ) const;
|
||||
size_type find_first_off( size_type pos = 0 ) const;
|
||||
|
||||
//! Finds the first bit set in `*this` with an index > `pos`, if
|
||||
//! any.
|
||||
|
||||
@@ -1358,20 +1358,6 @@ dynamic_bitset< Block, AllocatorOrContainer >::m_do_find_from( size_type first_b
|
||||
return i * bits_per_block + static_cast< size_type >( detail::lowest_bit( b ) );
|
||||
}
|
||||
|
||||
template< typename Block, typename AllocatorOrContainer >
|
||||
typename dynamic_bitset< Block, AllocatorOrContainer >::size_type
|
||||
dynamic_bitset< Block, AllocatorOrContainer >::find_first() const
|
||||
{
|
||||
return m_do_find_from( 0, true );
|
||||
}
|
||||
|
||||
template< typename Block, typename AllocatorOrContainer >
|
||||
typename dynamic_bitset< Block, AllocatorOrContainer >::size_type
|
||||
dynamic_bitset< Block, AllocatorOrContainer >::find_first_off() const
|
||||
{
|
||||
return m_do_find_from( 0, false );
|
||||
}
|
||||
|
||||
template< typename Block, typename AllocatorOrContainer >
|
||||
typename dynamic_bitset< Block, AllocatorOrContainer >::size_type
|
||||
dynamic_bitset< Block, AllocatorOrContainer >::find_first( size_type pos ) const
|
||||
|
||||
Reference in New Issue
Block a user