|
BDE 4.14.0 Production release
|
Macros | |
| #define | bslmf_ArrayToConstPointer bslmf::ArrayToConstPointer |
| This alias is defined for backward compatibility. | |
| #define | bslmf_ArrayToPointer bslmf::ArrayToPointer |
| This alias is defined for backward compatibility. | |
Provide a meta-function to convert array types to pointer types.
const pointer typeThis component provides a meta function for converting array types to pointer types. The utility is generally used for in templates that require forwarding or storage of arguments that are passed a arrays(e.g., "string literals"). For non array types, the type is left unmodified. Note that bslmf::ArrayToPointer and bslmf::ArrayToConstPointer retain the CV qualifiers of the original type. In other words, if the original array type was const or volatile, or const volatile, the converted pointer type will also be const, volatile, or const volatile respectively.
When an explicit const pointer pointer type is needed(such as when accepting as argument, then bslmf::ArrayToConstPointer should be used.
For example:
| #define bslmf_ArrayToConstPointer bslmf::ArrayToConstPointer |
| #define bslmf_ArrayToPointer bslmf::ArrayToPointer |