tmp/tmptjj0h1v0/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<any>` synopsis <a id="any.synop">[[any.synop]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
// [any.bad_any_cast], class bad_any_cast
|
| 6 |
+
class bad_any_cast;
|
| 7 |
+
|
| 8 |
+
// [any.class], class any
|
| 9 |
+
class any;
|
| 10 |
+
|
| 11 |
+
// [any.nonmembers], non-member functions
|
| 12 |
+
void swap(any& x, any& y) noexcept;
|
| 13 |
+
|
| 14 |
+
template <class T, class... Args>
|
| 15 |
+
any make_any(Args&& ...args);
|
| 16 |
+
template <class T, class U, class... Args>
|
| 17 |
+
any make_any(initializer_list<U> il, Args&& ...args);
|
| 18 |
+
|
| 19 |
+
template<class T>
|
| 20 |
+
T any_cast(const any& operand);
|
| 21 |
+
template<class T>
|
| 22 |
+
T any_cast(any& operand);
|
| 23 |
+
template<class T>
|
| 24 |
+
T any_cast(any&& operand);
|
| 25 |
+
|
| 26 |
+
template<class T>
|
| 27 |
+
const T* any_cast(const any* operand) noexcept;
|
| 28 |
+
template<class T>
|
| 29 |
+
T* any_cast(any* operand) noexcept;
|
| 30 |
+
}
|
| 31 |
+
```
|
| 32 |
+
|