BloombergLP::bsls::Util_Identity

This class template provides an easy way to alias a function pointer type when used as the return type of a function. The syntax for a function returning a function pointer is otherwise quite obscure, and difficult to read. As we want to return function pointers taking parameters and returning a result specified by template parameters below, it is not possible to define a simple typedef to the function type outside the function template itself.

Synopsis

Declared in <bsls_util.h>

template<class TYPE>
struct Util_Identity;

Type Aliases

NameDescription
type Alias of the template parameter TYPE.