What Does cv-qualified Mean?

Jonathan Mee picture Jonathan Mee · Dec 17, 2014 · Viewed 11.8k times · Source

I have started seeing the term "cv-qualified" being thrown around a lot.

An answer to my last question:

if T is a (possibly cv-qualified) class type (Clause 9), the default constructor (12.1) for T is called

Can someone define that for me?

Answer

ravi picture ravi · Dec 17, 2014

c-v qualified means const and volatile...For e.g:-

// non cv_qualified 
int first; 
char *second; 

// cv-qualified 
const int third; 
volatile char * fourth;