This commit is contained in:
2025-10-25 03:02:53 +03:00
commit 043225d523
3416 changed files with 681196 additions and 0 deletions

27
cppdraft/optional/mod.md Normal file
View File

@@ -0,0 +1,27 @@
[optional.mod]
# 22 General utilities library [[utilities]](./#utilities)
## 22.5 Optional objects [[optional]](optional#mod)
### 22.5.3 Class template optional [[optional.optional]](optional.optional#optional.mod)
#### 22.5.3.9 Modifiers [optional.mod]
[🔗](#lib:reset,optional)
`constexpr void reset() noexcept;
`
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L4434)
*Effects*: If *this contains a value, calls val->T::~T() to destroy the contained value;
otherwise no effect[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L4439)
*Postconditions*: *this does not contain a value[.](#2.sentence-1)