Hi,
I have seen the following type of declaration stl_map.h file.
...
iterator find(const key_type& __x) { return _M_t.find(__x); }
const_iterator find(const key_type& __x) const { return _M_t.find(__x); }
...
Two member functions are having the same name, but returning two different data types? Is it function overloading? please tell me what it means?
Regards,
Latha.G
I have seen the following type of declaration stl_map.h file.
...
iterator find(const key_type& __x) { return _M_t.find(__x); }
const_iterator find(const key_type& __x) const { return _M_t.find(__x); }
...
Two member functions are having the same name, but returning two different data types? Is it function overloading? please tell me what it means?
Regards,
Latha.G