Files
2025-10-25 03:02:53 +03:00

1.4 KiB
Raw Permalink Blame History

[pointer.traits.functions]

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;

1

#

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

2

#

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

3

#

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

The second member function returns addressof(r).

4

#

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