Skip to content
Snippets Groups Projects
Commit 25a88d31 authored by Oliver Sander's avatar Oliver Sander
Browse files

added constructor with a given length

[[Imported from SVN: r2080]]
parent 64820a54
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,9 @@ namespace Dune {
//! Default constructor
BitField() : std::vector<bool>() {}
//! Constructor with a given length
BitField(int n) : std::vector<bool>(n) {}
//! Constructor which initializes the field
BitField(int n, bool v) : std::vector<bool>(n) {
for (size_t i=0; i<size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment