Optimized C++17 replace std::vector v1 with c style array in this function: std::vector> get_shades_from_palette( std::vectorv1){ std::vector>v2; for(autoit=v1.begin();it!=v1.end();it++){ std::vectorsub_v1; for(autoit3=v1.begin();it3!=v1.end();it3++){ sub_v1.push_back(*it3); it3++; } v2.push_back(sub_v1); } returnv2; } Write your response with exactly 2 paragraphs, separated with the markdown divider: ***.
user