when I am overloading the [] operators, do I declare them like so:
operator[](string key){
or like so:
operator[string key]{
??
This is a discussion on overloading [] within the C++ Programming forums, part of the General Programming Boards category; when I am overloading the [] operators, do I declare them like so: operator[](string key){ or like so: operator[string key]{ ...
when I am overloading the [] operators, do I declare them like so:
operator[](string key){
or like so:
operator[string key]{
??
operator[](string key)
thanx