Qualifiers v/s Modifiers

S

sumsin

Is there any difference between 'qualifiers and modifiers?
Or both are synonyms, because in general they are used
interchangeably.
Which is the standard word from language perspective?
What are the different qualifiers(or/and modifiers) available in c++?
 
J

Jerry Coffin

Is there any difference between 'qualifiers and modifiers?
Or both are synonyms, because in general they are used
interchangeably.
Which is the standard word from language perspective?
What are the different qualifiers(or/and modifiers) available in c++?

A qualifier is either of "const" or "volatile" (often referred to as a
"cv-qualifier").

The C++ standard only talks about a "modifier" as being a member
function that changes the state of an object. Clearly this isn't
anything like a qualifier.

I can imagine somebody talking about 'signed' or 'unsigned' (for
example) as a "modifier", as both are normally used to modify another
type specifier (e.g. int or long).
 

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
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top