Skip to content

Commit

Permalink
[DEV] add operator overload
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 18, 2023
1 parent 1dffea3 commit 2afb811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/antares/study/parts/common/cluster_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
**
Expand Down

0 comments on commit 2afb811

Please sign in to comment.