BloombergLP::bslma::PointerUtil::voidify

Return address cast to void *, stripping cv-qualification.

Synopsis

Declared in <bslma_pointerutil.h>

template<class TYPE>
constexpr
static
void*
voidify(TYPE* address) noexcept;

Description

Return the specified address cast to void *, stripping any cv-qualification from the (template parameter) TYPE. Note that if TYPE is a function type, the conversion relies on conditionally- supported behavior (see {Function Pointers and void *}).

Return Value

address cast to void *, with any cv-qualification stripped

Parameters

NameDescription
addresspointer to convert to void *