Changed the order of at()

This commit is contained in:
akr
2022-04-28 02:45:19 +08:00
committed by Jim King
parent 29e1d40e88
commit d4be7a4fcb
2 changed files with 7 additions and 7 deletions

View File

@@ -210,8 +210,8 @@ public:
dynamic_bitset&amp; <a href="#flip3">flip</a>(size_type n, size_type len);
dynamic_bitset&amp; <a href="#flip2">flip</a>(size_type n);
dynamic_bitset&amp; <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 &lt; this-&gt;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 &lt; this-&gt;size()</tt>.<br />

View File

@@ -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"));