Dereference a pointer type for metaprogramming (declared only).
Synopsis
Declared in <bslmf_invokeresult.h>
template<class t_TP>
static
t_TP&
unpoint(t_TP& arg);
Description
If the argument type t_TP is pointer to type X, where X is not cv‐`void`, return a reference to X; otherwise return a reference to t_TP. Note that these functions are declared but not defined and are intended to be called only in an unevaluated context.
Parameters
Name |
Description |
arg |
expression that is returned unchanged when not a pointer |
Created with MrDocs