samedi 6 mars 2021

How do you describe the direct accessing of the underlying data member of a std::array?

I've seen implementations of std::array where all members are public. This, however, does not mean that the underlying array should be directly referred to. I know that the standard way of accessing the underlying array is through std::array::data().

Is there a specification from the ISO C++ standard that describes the attempt of directly accessing (referring to) the underlying array?

Aucun commentaire:

Enregistrer un commentaire