Compare commits

...

3 Commits

2 changed files with 11 additions and 29 deletions

View File

@@ -1064,10 +1064,7 @@ dynamic_bitset <a name=
<b>Returns:</b> a copy of <tt>*this</tt> shifted to the left by
<tt>n</tt> bits. For each bit in the returned bitset, the bit at
position pos takes on the value of the bit at position <tt>pos -
n</tt> of this bitset, or zero if no such bit exists. Note that
the expression <tt>b &lt;&lt; n</tt> is equivalent to
constructing a temporary copy of <tt>b</tt> and then using
<tt>operator&lt;&lt;=</tt>.<br>
n</tt> of this bitset, or zero if no such bit exists.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).
@@ -1080,10 +1077,7 @@ dynamic_bitset <a name=
<b>Returns:</b> a copy of <tt>*this</tt> shifted to the right by
<tt>n</tt> bits. For each bit in the returned bitset, the bit at
position pos takes on the value of the bit at position <tt>pos +
n</tt> of this bitset, or zero if no such bit exists. Note that
the expression <tt>b &gt;&gt; n</tt> is equivalent to
constructing a temporary copy of <tt>b</tt> and then using
<tt>operator&gt;&gt;=</tt>.<br>
n</tt> of this bitset, or zero if no such bit exists.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).
@@ -1396,10 +1390,7 @@ dynamic_bitset <a name=
<b>Requires:</b> <tt>a.size() == b.size()</tt><br>
<b>Returns:</b> A new bitset that is the bitwise-AND of the
bitsets <tt>a</tt> and <tt>b</tt>. Note that the expression
<tt>b1 &amp; b2</tt> is equivalent to creating a temporary copy
of <tt>b1</tt>, using <tt>operator&amp;=</tt>, and returning the
temporary copy.<br>
bitsets <tt>a</tt> and <tt>b</tt>.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).
@@ -1411,10 +1402,7 @@ dynamic_bitset <a name=
<b>Requires:</b> <tt>a.size() == b.size()</tt><br>
<b>Returns:</b> A new bitset that is the bitwise-OR of the
bitsets <tt>a</tt> and <tt>b</tt>. Note that the expression
<tt>b1 &amp; b2</tt> is equivalent to creating a temporary copy
of <tt>b1</tt>, using <tt>operator&amp;=</tt>, and returning the
temporary copy.<br>
bitsets <tt>a</tt> and <tt>b</tt>.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).
@@ -1426,10 +1414,7 @@ dynamic_bitset <a name=
<b>Requires:</b> <tt>a.size() == b.size()</tt><br>
<b>Returns:</b> A new bitset that is the bitwise-XOR of the
bitsets <tt>a</tt> and <tt>b</tt>. Note that the expression
<tt>b1 &amp; b2</tt> is equivalent to creating a temporary copy
of <tt>b1</tt>, using <tt>operator&amp;=</tt>, and returning the
temporary copy.<br>
bitsets <tt>a</tt> and <tt>b</tt>.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).
@@ -1441,10 +1426,7 @@ dynamic_bitset <a name=
<b>Requires:</b> <tt>a.size() == b.size()</tt><br>
<b>Returns:</b> A new bitset that is the set difference of the
bitsets <tt>a</tt> and <tt>b</tt>. Note that the expression
<tt>b1 - b2</tt> is equivalent to creating a temporary copy of
<tt>b1</tt>, using <tt>operator-=</tt>, and returning the
temporary copy.<br>
bitsets <tt>a</tt> and <tt>b</tt>.<br>
<b>Throws:</b> An allocation error if memory is exhausted
(<tt>std::bad_alloc</tt> if <tt>Allocator=std::allocator</tt>).

View File

@@ -769,11 +769,11 @@ dynamic_bitset<Block, Allocator>::operator<<=(size_type n)
b[div] = b[0];
}
// disable std::fill_n deprecated warning in MSVC++ 8.0 (warning C4996)
// This will only work in MSVC++ 8.0 SP1, which brings up the warning
// in the line of user code; otherwise, the warning will come up
// in the line in the header itself, so if the user includes stdlib
// headers before dynamic_bitset, he will still get the warning.
// disable std::fill_n deprecated warning in MSVC++ 8.0 (warning C4996)
// This will only work in MSVC++ 8.0 SP1, which brings up the warning
// in the line of user code; otherwise, the warning will come up
// in the line in the header itself, so if the user includes stdlib
// headers before dynamic_bitset, he will still get the warning.
#if defined(_MSC_VER) && _MSC_VER >= 1400
#pragma warning(push)
#pragma warning(disable:4996)