C++ Double Subscript Operator Overloading

preview_player
Показать описание
c++ features operator overloading, and it features subscript operator overloading. However, when working with 2d arrays it would be more useful to have double subscript operator overloading. This is a feature in other programming languages like c#, but not in c++. Therefore, I have found a way to implement it, which I will show here.
Рекомендации по теме
Комментарии
Автор

This is exactly what I needed, thanks )

yeegaure
Автор

Thank you so much ive been wondering how to make it templatized instead of double and can this be done with arrays as well.

faisalchowdhury