From 2afb8119cf6d6cf661fbaef2e0aea67a86c93a9e Mon Sep 17 00:00:00 2001 From: Vincent Payet Date: Mon, 18 Dec 2023 17:03:26 +0100 Subject: [PATCH] [DEV] add operator overload --- src/libs/antares/study/parts/common/cluster_list.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/antares/study/parts/common/cluster_list.h b/src/libs/antares/study/parts/common/cluster_list.h index cf785d5c46..16ba025750 100644 --- a/src/libs/antares/study/parts/common/cluster_list.h +++ b/src/libs/antares/study/parts/common/cluster_list.h @@ -120,6 +120,8 @@ class ClusterList iterator end(); const_iterator end() const; + SharedPtr& operator[](std::size_t idx) { return clusters[idx]; } + const SharedPtr& operator[](std::size_t idx) const { return clusters[idx]; } /*! ** \brief Resize all matrices dedicated to the sampled timeseries numbers **