Init
This commit is contained in:
27
cppdraft/optional/mod.md
Normal file
27
cppdraft/optional/mod.md
Normal 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)
|
||||
Reference in New Issue
Block a user