[pointer.traits.functions] (original) (raw)

20 Memory management library [mem]

20.2 Memory [memory]

20.2.3 Pointer traits [pointer.traits]

20.2.3.3 Member functions [pointer.traits.functions]

static pointer pointer_traits::pointer_to(_see below_ r);static constexpr pointer pointer_traits<T*>::pointer_to(_see below_ r) noexcept;

Mandates: For the first member function,Ptr​::​pointer_to(r) is well-formed.

Preconditions: For the first member function,Ptr​::​pointer_to(r) returns a pointer to rthrough which indirection is valid.

Returns: The first member function returns Ptr​::​pointer_to(r).

The second member function returns addressof(r).

Remarks: If element_type is cv void, the type ofr is unspecified; otherwise, it is element_type&.