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

766 B
Raw Permalink Blame History

[optional.mod]

22 General utilities library [utilities]

22.5 Optional objects [optional]

22.5.3 Class template optional [optional.optional]

22.5.3.9 Modifiers [optional.mod]

🔗

constexpr void reset() noexcept;

1

#

Effects: If *this contains a value, calls val->T::~T() to destroy the contained value; otherwise no effect.

2

#

Postconditions: *this does not contain a value.