Init
This commit is contained in:
26
cppdraft/any/general.md
Normal file
26
cppdraft/any/general.md
Normal file
@@ -0,0 +1,26 @@
|
||||
[any.general]
|
||||
|
||||
# 22 General utilities library [[utilities]](./#utilities)
|
||||
|
||||
## 22.7 Storage for any type [[any]](any#general)
|
||||
|
||||
### 22.7.1 General [any.general]
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L7020)
|
||||
|
||||
Subclause [[any]](any "22.7 Storage for any type") describes components that C++ programs may use to perform operations on objects of a discriminated type[.](#1.sentence-1)
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/utilities.tex#L7023)
|
||||
|
||||
[*Note [1](#note-1)*:
|
||||
|
||||
The discriminated type can contain values of different types but does not attempt conversion between them,
|
||||
i.e., 5 is held strictly as an int and is not implicitly convertible either to "5" or to 5.0[.](#2.sentence-1)
|
||||
|
||||
This indifference to interpretation but awareness of type effectively allows safe, generic containers of single values, with no scope for surprises from ambiguous conversions[.](#2.sentence-2)
|
||||
|
||||
â *end note*]
|
||||
Reference in New Issue
Block a user