lundi 23 octobre 2017

2d std::array c++ pointer

Using c++ std11, I have a class having as member a const pointer to 2D std::array like this:

Class My_Class {

  public:
    const std::array<std::array<int, 3UL>, 2>* my_array;

}

What is the right way to inizialize it? Could you provide me an example?

Thanks.

Aucun commentaire:

Enregistrer un commentaire