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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -