Commit aca4b1af authored by Jonathan Youett's avatar Jonathan Youett

Add method to check if all bits of a block are set.

parent 88cfef67
......@@ -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