C++ experts advice needed

S

sandSpiderX

Hi,
Can any one explain this to me....

"For every quintuple (C1, C2, T, CV1, CV2), where C2 is a class type,
C1 is the same type as C2 or is a
derived class of C2, T is an object type or a function type, and CV1
and CV2 are cvqualifierseqs,
there
exist candidate operator functions of the form
CV12 T& operator>*(
CV1 C1*, CV2 T C2::*);
where CV12 is the union of CV1 and CV2."

Everything is understandble , but for
CV2 T C2::*

what does this mean ?

Help
sandSpiderX
 
S

sandSpiderX

operator is :- as shown above ,

CV12 T& operator->*(CV1 C1*, CV2 T C2::*);

thanks...
sandSpiderX
 
M

msalters

sandSpiderX schreef:
Hi,
Can any one explain this to me....

"For every quintuple (C1, C2, T, CV1, CV2), where C2 is a class type,
C1 is the same type as C2 or is a
derived class of C2, T is an object type or a function type, and CV1
and CV2 are cvqualifierseqs,
there
exist candidate operator functions of the form
CV12 T& operator>*(
CV1 C1*, CV2 T C2::*);
where CV12 is the union of CV1 and CV2."

Everything is understandble , but for
CV2 T C2::*

It's a member pointer
T is the type of the member, and C2 is the class that contains a T.
Since C1 is derived from C2, it will contain the same member of type T.

Members can have a cv-qualifier seq too and CV2 is that cv-qualifier
seq.

So if you have a const int Base::m_i; then &Base::m_i is a CV2 T C2::*
with CV2=const, T=int and C2==Base.

HTH,
Michiel Salters
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top