From dc6930c00b4b276883280cff1ed6dcd9ddef03c7 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Tue, 8 Dec 2009 21:38:55 -0500 Subject: LICENSE fixes, full support of lattice decoding --- src/array2d.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/array2d.h') 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; -- cgit v1.2.3