From 865c0136ead1cd71af8e0d94387da39d2c44c6f5 Mon Sep 17 00:00:00 2001 From: Jason Marechal Date: Wed, 26 Jul 2023 17:21:07 +0200 Subject: [PATCH] Add using for BindingConstraintGroupRepository iterator --- .../BindingConstraintGroupRepository.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/libs/antares/study/binding_constraint/BindingConstraintGroupRepository.h b/src/libs/antares/study/binding_constraint/BindingConstraintGroupRepository.h index 4515255b1f..69c6d9bc20 100644 --- a/src/libs/antares/study/binding_constraint/BindingConstraintGroupRepository.h +++ b/src/libs/antares/study/binding_constraint/BindingConstraintGroupRepository.h @@ -26,11 +26,14 @@ class BindingConstraintGroupRepository { std::shared_ptr operator[](std::string name); - [[nodiscard]] std::vector>::iterator begin(); - [[nodiscard]] std::vector>::const_iterator begin() const; + using iterator = std::vector>::iterator; + using const_iterator = std::vector>::const_iterator; - [[nodiscard]] std::vector>::iterator end(); - [[nodiscard]] std::vector>::const_iterator end() const; + [[nodiscard]] iterator begin(); + [[nodiscard]] const_iterator begin() const; + + [[nodiscard]] iterator end(); + [[nodiscard]] const_iterator end() const; std::shared_ptr add(const std::string& name); void clear();