tmp/tmpm4k1b1k3/{from.md → to.md}
RENAMED
|
@@ -25,11 +25,11 @@ is a non-reference type `T`, the return type is `T&&`. — *end note*]
|
|
| 25 |
|
| 26 |
[*Note 2*: \[Note B\]Constness is shallow. If a type `T` in `Types` is
|
| 27 |
some reference type `X&`, the return type is `X&`, not `const X&`.
|
| 28 |
However, if the element type is a non-reference type `T`, the return
|
| 29 |
type is `const T&`. This is consistent with how constness is defined to
|
| 30 |
-
work for
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
template<class T, class... Types>
|
| 34 |
constexpr T& get(tuple<Types...>& t) noexcept;
|
| 35 |
template<class T, class... Types>
|
|
|
|
| 25 |
|
| 26 |
[*Note 2*: \[Note B\]Constness is shallow. If a type `T` in `Types` is
|
| 27 |
some reference type `X&`, the return type is `X&`, not `const X&`.
|
| 28 |
However, if the element type is a non-reference type `T`, the return
|
| 29 |
type is `const T&`. This is consistent with how constness is defined to
|
| 30 |
+
work for non-static data members of reference type. — *end note*]
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
template<class T, class... Types>
|
| 34 |
constexpr T& get(tuple<Types...>& t) noexcept;
|
| 35 |
template<class T, class... Types>
|