From Jason Turner

[polymorphic.obs]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpod_cm74l/{from.md → to.md} +32 -0
tmp/tmpod_cm74l/{from.md → to.md} RENAMED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Observers <a id="polymorphic.obs">[[polymorphic.obs]]</a>
2
+
3
+ ``` cpp
4
+ constexpr const T& operator*() const noexcept;
5
+ constexpr T& operator*() noexcept;
6
+ ```
7
+
8
+ *Preconditions:* `*this` is not valueless.
9
+
10
+ *Returns:* A reference to the owned object.
11
+
12
+ ``` cpp
13
+ constexpr const_pointer operator->() const noexcept;
14
+ constexpr pointer operator->() noexcept;
15
+ ```
16
+
17
+ *Preconditions:* `*this` is not valueless.
18
+
19
+ *Returns:* A pointer to the owned object.
20
+
21
+ ``` cpp
22
+ constexpr bool valueless_after_move() const noexcept;
23
+ ```
24
+
25
+ *Returns:* `true` if `*this` is valueless, otherwise `false`.
26
+
27
+ ``` cpp
28
+ constexpr allocator_type get_allocator() const noexcept;
29
+ ```
30
+
31
+ *Returns:* *alloc*.
32
+