allocator_base::address

Finds the address of an object whose value is specified.

pointer address(reference _Val);
const_pointer address(const_reference _Val);

Parameters

  • _Val
    The const or nonconst value of the object whose address is being searched for.

Return Value

A const or nonconst pointer to the object found of, respectively, const or nonconst value.

Remarks

This member function is implemented for the user-defined allocator by returning &_Val.

Requirements

Header: <allocators>

Namespace: stdext

See Also

Reference

allocator_base Class