Le 2022-06-03 08:44, Richard Hodges via Boost a écrit :
On Fri, 3 Jun 2022 at 08:31, Julien Blanc via Boost
wrote: Are you able to provide one or two motivating use cases? i.e. scenarios in which I would strongly prefer to use this library rather than a std::array and static_cast?
You mean, in addition to
https://github.com/julien-Blanc-tgcm/indexed_array#sample-use-cases ?
Another benefit that i did not speak of is that you get type safety for
the index. i.e. you cannot use a wrongly typed index:
indexed_array