mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-22 05:12:13 +00:00
Compare commits
2 Commits
boost-1.44
...
boost-1.46
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b241db6ec | ||
|
|
e6fc8e8ec9 |
@@ -71,8 +71,8 @@ void run_numeric_ctor_tests( BOOST_EXPLICIT_TEMPLATE_TYPE(Tests)
|
||||
};
|
||||
|
||||
const T numbers[] = {
|
||||
T(-1), T(-3), T(-8), T(-15), mi/2, mi,
|
||||
0, 1, 3, 8, 15, ma/2, ma
|
||||
T(-1), T(-3), T(-8), T(-15), T(mi/2), T(mi),
|
||||
T(0), T(1), T(3), T(8), T(15), T(ma/2), T(ma)
|
||||
};
|
||||
|
||||
for (std::size_t s = 0; s < BOOST_BITSET_TEST_COUNT(sizes); ++s) {
|
||||
|
||||
@@ -212,6 +212,7 @@ public:
|
||||
|
||||
bool <a href="#is_subset_of">is_subset_of</a>(const dynamic_bitset& a) const;
|
||||
bool <a href="#is_proper_subset_of">is_proper_subset_of</a>(const dynamic_bitset& a) const;
|
||||
bool <a href="#intersects">intersects</a>(const dynamic_bitset& a) const;
|
||||
|
||||
size_type <a href="#find_first">find_first</a>() const;
|
||||
size_type <a href="#find_next">find_next</a>(size_type pos) const;
|
||||
@@ -1174,6 +1175,19 @@ also set and if <tt>this->count() < a.count()</tt>.
|
||||
Otherwise this function returns false.<br />
|
||||
<b>Throws:</b> nothing.
|
||||
|
||||
<hr />
|
||||
<pre>
|
||||
bool <a id=
|
||||
"intersects">intersects</a>(const dynamic_bitset& a) const
|
||||
</pre>
|
||||
|
||||
<b>Requires:</b> <tt>this->size() == a.size()</tt><br />
|
||||
<b>Returns:</b> true if this bitset and <tt>a</tt> intersect.
|
||||
That is, it returns true if, there is a bit which is set in this
|
||||
bitset, such that the corresponding bit in bitset <tt>a</tt> is
|
||||
also set. Otherwise this function returns false.<br />
|
||||
<b>Throws:</b> nothing.
|
||||
|
||||
<hr />
|
||||
<pre>
|
||||
size_type <a id = "find_first">find_first</a>() const;
|
||||
|
||||
@@ -54,7 +54,7 @@ class dynamic_bitset
|
||||
// of VC++ are likely able to digest a more drinking form of the
|
||||
// code; but changing it now is probably not worth the risks...]
|
||||
|
||||
BOOST_STATIC_ASSERT(detail::dynamic_bitset_impl::allowed_block_type<Block>::value);
|
||||
BOOST_STATIC_ASSERT((bool)detail::dynamic_bitset_impl::allowed_block_type<Block>::value);
|
||||
|
||||
public:
|
||||
typedef Block block_type;
|
||||
@@ -670,7 +670,7 @@ resize(size_type num_bits, bool value) // strong guarantee
|
||||
|
||||
if (value && (num_bits > m_num_bits)) {
|
||||
|
||||
const size_type extra_bits = count_extra_bits();
|
||||
const block_width_type extra_bits = count_extra_bits();
|
||||
if (extra_bits) {
|
||||
assert(old_num_blocks >= 1 && old_num_blocks <= m_bits.size());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user