Is declaring a const and non-const member function with the same name classified as overloading?
iterator find ( const key_type& x );
const_iterator find ( const key_type& x ) const;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, this is overloading. The term is defined in
[over]/1as:Here, there are clearly two different declarations with the same name.