mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Changed the order of at()
This commit is contained in:
@@ -210,8 +210,8 @@ public:
|
||||
dynamic_bitset& <a href="#flip3">flip</a>(size_type n, size_type len);
|
||||
dynamic_bitset& <a href="#flip2">flip</a>(size_type n);
|
||||
dynamic_bitset& <a href="#flip1">flip</a>();
|
||||
bool <a href="#const-at">at</a>(size_type n) const;
|
||||
reference <a href="#at">at</a>(size_type n);
|
||||
bool <a href="#const-at">at</a>(size_type n) const;
|
||||
bool <a href="#test">test</a>(size_type n) const;
|
||||
bool <a href="#test">test_set</a>(size_type n, bool val = true);
|
||||
bool <a href="#all">all</a>() const;
|
||||
@@ -1254,7 +1254,7 @@ returns <tt>false</tt>.<br />
|
||||
|
||||
<hr />
|
||||
<pre>
|
||||
bool <a id="const-at">at</a>(size_type n) const
|
||||
reference <a id="at">at</a>(size_type n)
|
||||
</pre>
|
||||
|
||||
<b>Precondition:</b> <tt>n < this->size()</tt>.<br />
|
||||
@@ -1263,7 +1263,7 @@ bool <a id="const-at">at</a>(size_type n) const
|
||||
|
||||
<hr />
|
||||
<pre>
|
||||
reference <a id="at">at</a>(size_type n)
|
||||
bool <a id="const-at">at</a>(size_type n) const
|
||||
</pre>
|
||||
|
||||
<b>Precondition:</b> <tt>n < this->size()</tt>.<br />
|
||||
|
||||
@@ -293,8 +293,8 @@ public:
|
||||
dynamic_bitset& flip(size_type n, size_type len);
|
||||
dynamic_bitset& flip(size_type n);
|
||||
dynamic_bitset& flip();
|
||||
bool at(size_type n) const;
|
||||
reference at(size_type n);
|
||||
bool at(size_type n) const;
|
||||
bool test(size_type n) const;
|
||||
bool test_set(size_type n, bool val = true);
|
||||
bool all() const;
|
||||
@@ -1117,7 +1117,8 @@ bool dynamic_bitset<Block, Allocator>::m_unchecked_test(size_type pos) const
|
||||
}
|
||||
|
||||
template <typename Block, typename Allocator>
|
||||
bool dynamic_bitset<Block, Allocator>::at(size_type pos) const
|
||||
typename dynamic_bitset<Block, Allocator>::reference
|
||||
dynamic_bitset<Block, Allocator>::at(size_type pos)
|
||||
{
|
||||
if (pos >= m_num_bits)
|
||||
BOOST_THROW_EXCEPTION(std::out_of_range("boost::dynamic_bitset::at out_of_range"));
|
||||
@@ -1126,8 +1127,7 @@ bool dynamic_bitset<Block, Allocator>::at(size_type pos) const
|
||||
}
|
||||
|
||||
template <typename Block, typename Allocator>
|
||||
typename dynamic_bitset<Block, Allocator>::reference
|
||||
dynamic_bitset<Block, Allocator>::at(size_type pos)
|
||||
bool dynamic_bitset<Block, Allocator>::at(size_type pos) const
|
||||
{
|
||||
if (pos >= m_num_bits)
|
||||
BOOST_THROW_EXCEPTION(std::out_of_range("boost::dynamic_bitset::at out_of_range"));
|
||||
|
||||
Reference in New Issue
Block a user