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

1.8 KiB

[polymorphic.obs]

20 Memory management library [mem]

20.4 Types for composite class design [mem.composite.types]

20.4.2 Class template polymorphic [polymorphic]

20.4.2.6 Observers [polymorphic.obs]

🔗

constexpr const T& operator*() const noexcept; constexpr T& operator*() noexcept;

1

#

Preconditions: *this is not valueless.

2

#

Returns: A reference to the owned object.

🔗

constexpr const_pointer operator->() const noexcept; constexpr pointer operator->() noexcept;

3

#

Preconditions: *this is not valueless.

4

#

Returns: A pointer to the owned object.

🔗

constexpr bool valueless_after_move() const noexcept;

5

#

Returns: true if *this is valueless, otherwise false.

🔗

constexpr allocator_type get_allocator() const noexcept;

6

#

Returns: alloc.