Commit faff0831 authored by Christian Engwer's avatar Christian Engwer

Merge branch 'feature/add_check_all_bits_set_to_bitsetvector' into 'master'

[feature] Add method 'all' to BitSetVectorConstReference

I don't know if this is considered to be some proper interface change,
but I would like to add the method 'all' to the BitSetVectorConstReference
class which, in analogy to the present method 'none', returns 'true' if all
bits of a block are set.

See merge request !54
parents 88cfef67 aca4b1af
......@@ -109,6 +109,15 @@ namespace Dune {
return ! any();
//! Returns true if all bits are set
bool all() const
for(size_type i=0; i<block_size; ++i)
if(not test(i))
return false;
return true;
//! Returns true if bit n is set.
bool test(size_type n) const
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment