Condividi tramite


pointer_traits::pointer_to Method

Static method that returns Ptr::pointer_to(obj), if that function exists. Otherwise, it is not possible to convert an arbitrary reference to an object of class Ptr. If Ptr is a raw pointer, this method returns addressof(obj).

static pointer pointer_to(element_type& obj);

Requirements

Header: <memory>

Namespace: std

See Also

Reference

pointer_traits Struct