If I have a member function that looks like this:
const T& temp const( const T& t) const{
//some code
return t;
}
What do each of the const do, in the order left to right? Is this right or wrong?
- return const object
- can't change any of the member fields that are not mutable
- can only pass in const objects of type T
- this is a const member function, can only be called with a const object