Search code examples
How do I remove code duplication between similar const and non-const member functions?...


c++code-duplicationc++-faqfunction-qualifierexplicit-object-parameter

Read More
error: passing const xxx as 'this' argument of member function discards qualifiers...


c++member-functionsconst-correctnessstdsetfunction-qualifier

Read More
What is the difference between getters with const, and with const& qualifiers?...


c++getterfunction-qualifierref-qualifier

Read More
What is the purpose of Ref-qualified member functions ?...


c++c++11function-qualifierref-qualifier

Read More
Initializing member functions fields...


c++compiler-errorsmember-functionsfunction-qualifier

Read More
Why can't a static member function have a const qualifier?...


c++staticlanguage-lawyerconst-correctnessfunction-qualifier

Read More
Does a const member function call the non-const version, or is it recursive?...


c++recursionconstantsconst-correctnessfunction-qualifier

Read More
reinterpret_cast<const> casts away const qualifier?...


c++reinterpret-castconst-correctnessfunction-qualifier

Read More
Why is std::basic_string::operator[] simultaneously a const/non-const member function?...


c++operator-overloadingoverloadingstdfunction-qualifier

Read More
How can you decrement a static data member from inside a const member function?...


c++static-membersfunction-qualifier

Read More
How can you return a non-const reference to an element in a std::vector data member from a const mem...


c++stdvectormember-functionsconst-correctnessfunction-qualifier

Read More
C++ overload resolution, conversion operators and const...


c++language-lawyeroverloadingconversion-operatorfunction-qualifier

Read More
Is a member function returning a const reference to a data member thread-safe?...


c++thread-safetyconst-correctnessfunction-qualifier

Read More
How come a const temporary chooses to call a non-const member function over a const one?...


c++visual-c++visual-studio-2012function-qualifier

Read More
Should I declare these member functions const?...


c++static-analysisconst-correctnessfunction-qualifier

Read More
In c++, why does the compiler choose the non-const function when the const would work also?...


c++constantsoverload-resolutionconst-referencefunction-qualifier

Read More
On a non-const object, why won't C++ call the const version of a member function with public-con...


c++overload-resolutionprivate-methodspublic-methodfunction-qualifier

Read More
Why is the non-const member function being called, instead of the const one?...


c++constantsoperator-overloadingoverload-resolutionfunction-qualifier

Read More
What can a const member function change?...


c++thisclass-methoddatamemberfunction-qualifier

Read More
Why is a public const member function not called when the non-const one is private?...


c++overloadingoverload-resolutionprivate-methodsfunction-qualifier

Read More
Possible way to get rid of abominable function types in C++?...


c++functiontemplatesmetaprogrammingfunction-qualifier

Read More
Why doesn't remove_reference work on functions?...


c++templatestypesc++17function-qualifier

Read More
Avoiding repetition of const and non-const version of getters?...


c++c++11getterfunction-qualifierexplicit-object-parameter

Read More
Call nonconst member version from const...


c++constantsoverloadingfunction-qualifier

Read More
How to handle const/non const combination of getters without duplicate code?...


c++c++11constantscode-reusefunction-qualifier

Read More
Const function calling non const or vice versa (to avoid duplication)?...


c++functionconstantsfunction-qualifier

Read More
Elegant solution to duplicate, const and non-const, getters?...


c++constantsfunction-qualifier

Read More
How many usage does "volatile" keyword have in C++ function, from grammar perspective?...


c++functionvolatilefunction-qualifier

Read More
call of overloaded with ref-qualifiers member function is ambiguous...


c++c++11overload-resolutionref-qualifierfunction-qualifier

Read More
Overloading a parent member function without ref-qualifier with a child member function with ref-qua...


c++language-lawyeroverloadingref-qualifierfunction-qualifier

Read More
BackNext