I've only recently discovered the existance of pointer to class data member, for example:
class Car
{
public:
int speed;
};
int main()
{
int Car::*pSpeed = &Car::speed;
return 0;
}
Do reference to class data member also exist? If so, which is the sintax to declare them?