boost::dynamic_bitset::intersects

Checks whether *this intersects with b.

Synopsis

Declared in <boost/dynamic_bitset/dynamic_bitset.hpp>

bool
intersects(dynamic_bitset const& b) const;

Return Value

true if this bitset and b intersect. That is, it returns true if there is a bit which is set in this bitset, such that the corresponding bit in bitset b is also set. Otherwise this function returns false.

Parameters

Name Description

b

The bitset to test *this against.

Preconditions

  • this‐>size() == b.size().

Created with MrDocs