c++ - typedef type * type::* , what is it? -
i have following code:
struct mytype { mytype * ptr; }; typedef mytype * mytype ::* other_type; what second line typedef'ining? member function returns mytype pointer or else?
that defines other_type pointer member of mytype said member pointer mytype. example, use way:
other_type x = &mytype::ptr; mytype mine; mine.*x = &mine; why that, can't say.
Comments
Post a Comment