BloombergLP::bslmf::ArrayToConstPointer

Meta-function that converts an array type to a const pointer type.

Synopsis

Declared in <bslmf_arraytopointer.h>

template<class t_TYPE>
struct ArrayToConstPointer;

Description

This meta-function provides a nested Type alias that is a pointer to const element type when the (template parameter) t_TYPE is an array, and is const t_TYPE itself otherwise. Use this when an explicitly const pointer type is required.

Type Aliases

NameDescription
Type This typedef is an alias for the const pointer type corresponding to t_TYPE when t_TYPE is an array, and for const t_TYPE otherwise.

Specializations

NameDescription
ArrayToConstPointer<t_TYPE&> This partial specialization of ArrayToConstPointer for lvalue references converts the referenced array type to a const pointer type.