summaryrefslogtreecommitdiff
path: root/src/array2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/array2d.h')
-rw-r--r--src/array2d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/array2d.h b/src/array2d.h
index 09d84d0b..e63eda0d 100644
--- a/src/array2d.h
+++ b/src/array2d.h
@@ -19,6 +19,7 @@ class Array2D {
width_(w), height_(h), data_(w*h, d) {}
Array2D(const Array2D& rhs) :
width_(rhs.width_), height_(rhs.height_), data_(rhs.data_) {}
+ bool empty() const { return data_.empty(); }
void resize(int w, int h, const T& d = T()) {
data_.resize(w * h, d);
width_ = w;