Skip to content

Commit

Permalink
Adding empty check for vector properties
Browse files Browse the repository at this point in the history
  • Loading branch information
janweinstock committed Oct 24, 2023
1 parent 68680c3 commit 39476e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/vcml/properties/property.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,8 @@ class property<vector<T>, 1> : public property_base
virtual size_t count() const override { return m_val.size(); }
virtual const char* type() const override { return m_type.c_str(); }

bool empty() const { return m_val.empty(); }

constexpr bool is_inited() const { return m_inited; }
constexpr bool is_default() const { return !m_inited; }

Expand Down

0 comments on commit 39476e3

Please sign in to comment.