diff --git a/cpp/LieConfig.h b/cpp/LieConfig.h index ab5678129..1e4ce3309 100644 --- a/cpp/LieConfig.h +++ b/cpp/LieConfig.h @@ -68,6 +68,9 @@ namespace gtsam { /** The number of variables in this config */ size_t size() const { return values_.size(); } + /** whether the config is empty */ + bool empty() const { return values_.empty(); } + /** * The dimensionality of the tangent space */