Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the deal with “const-overloading”?

const deal overloading
0
10 Posted

Whats the deal with “const-overloading”?

0
10

It’s when you have an inspector method and a mutator method with the same name and the same number and type of parameters the methods differ only in that one is const and the other is non-const. The subscript operator is a common use of const-overloading.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123