const Overloads

Let’s learn about const overloads.

Introduction to const Overloads

It’s possible to overload a function with the const qualifier. It’s also possible to have a const and a non-const overload of the same function.

In such a case, the compiler will choose which ...