dimanche 4 août 2019

Unable to split C++ STL Std:array container into 2 subpart

I have std::array container of 6 size and have to pass first 3 element of std::array container in one function by reference and Next 3 element in another function by reference but i am not able to do it.

I converted std::array myarray container into c-style array and passed func1(myarray) and func2(myarray+3) and again converted c-style array to c++ array container of 6 size.

for example:- Std:array myarray={1,2,3,4,5,6} now i want to pass first three element in first function and next three element in another function by reference.

Aucun commentaire:

Enregistrer un commentaire