I have a nested std::array of std::tuple. For example,
std::array<std::array<std::pair<int*, float*>, 12>, 3> my_array;
How can I clear all elements so all the pointers are zeroed (i.e. nullptr)?
I have a nested std::array of std::tuple. For example,
std::array<std::array<std::pair<int*, float*>, 12>, 3> my_array;
How can I clear all elements so all the pointers are zeroed (i.e. nullptr)?
Copyright © 2021 Jogjafile Inc.
Since you're using
std::array, you could just just assign an emptystd::arraytomy_arrayas shown below: