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

1.3 KiB

[pointer.traits.optmem]

20 Memory management library [mem]

20.2 Memory [memory]

20.2.3 Pointer traits [pointer.traits]

20.2.3.4 Optional members [pointer.traits.optmem]

1

#

Specializations of pointer_traits may define the member declared in this subclause to customize the behavior of the standard library.

A specialization generated from the pointer_traits primary template has no member by this name.

🔗

static element_type* to_address(pointer p) noexcept;

2

#

Returns: A pointer of type element_type* that references the same location as the argument p.

3

#

[Note 1:

This function is intended to be the inverse of pointer_to.

If defined, it customizes the behavior of the non-member functionto_address ([pointer.conversion]).

— end note]