BDE 4.14.0 Production release
|
Macros | |
#define | bslmf_RemoveCvq bslmf::RemoveCvq |
This alias is defined for backward compatibility. | |
Provide a meta-function for removing const
/volatile
qualifiers.
const
/volatile
qualifiersThis component defines a simple template structure used to strip of any top-level const
/volatile
qualifiers from it's single template parameter. The un-qualified type can be accessed via the Type
member defined in bslmf::RemoveCvq
.
We can make a simple template function that shows whether two objects are the same type, ignoring const
and volatile
qualifiers.
First, we create a template that will determine whether two objects are EXACTLY the same type:
Next, we combine that template function with the use of bslmf::RemoveCvq
to create a template that will determine whether two objects are the same type, ignoring const
and volatile
qualifiers:
Next, we use the templates
#define bslmf_RemoveCvq bslmf::RemoveCvq |