Skip to content

Commit

Permalink
Added empty and size to selectables registry.
Browse files Browse the repository at this point in the history
  • Loading branch information
5cript committed Sep 19, 2023
1 parent 91ac502 commit 4029e8a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nui/include/nui/data_structures/selectables_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,15 @@ namespace Nui
return {items_.cend()};
}

bool empty() const
{
return itemCount_ == 0;
}
std::size_t size() const
{
return itemCount_;
}

private:
typename std::vector<ItemWithId>::iterator findItem(IdType id)
{
Expand Down

0 comments on commit 4029e8a

Please sign in to comment.