summaryrefslogtreecommitdiff
path: root/decoder/sparse_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/sparse_vector.h')
-rw-r--r--decoder/sparse_vector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/sparse_vector.h b/decoder/sparse_vector.h
index c6c57150..455a162b 100644
--- a/decoder/sparse_vector.h
+++ b/decoder/sparse_vector.h
@@ -255,6 +255,8 @@ public:
return values_.size() < other.values_.size();
}
+ int size() const { return values_.size(); }
+
int num_active() const { return values_.size(); }
bool empty() const { return values_.empty(); }