Skip to content

Commit

Permalink
Add using for BindingConstraintGroupRepository iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Jul 26, 2023
1 parent 0b776f1 commit 865c013
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ class BindingConstraintGroupRepository {

std::shared_ptr<BindingConstraintGroup> operator[](std::string name);

[[nodiscard]] std::vector<std::shared_ptr<BindingConstraintGroup>>::iterator begin();
[[nodiscard]] std::vector<std::shared_ptr<BindingConstraintGroup>>::const_iterator begin() const;
using iterator = std::vector<std::shared_ptr<BindingConstraintGroup>>::iterator;
using const_iterator = std::vector<std::shared_ptr<BindingConstraintGroup>>::const_iterator;

[[nodiscard]] std::vector<std::shared_ptr<BindingConstraintGroup>>::iterator end();
[[nodiscard]] std::vector<std::shared_ptr<BindingConstraintGroup>>::const_iterator end() const;
[[nodiscard]] iterator begin();
[[nodiscard]] const_iterator begin() const;

[[nodiscard]] iterator end();
[[nodiscard]] const_iterator end() const;

std::shared_ptr<BindingConstraintGroup> add(const std::string& name);
void clear();
Expand Down

0 comments on commit 865c013

Please sign in to comment.