| Technical Specification | ||||
| Filesystem library(filesystem TS) | ||||
| Library fundamentals(library fundamentals TS) | ||||
| Library fundamentals 2(library fundamentals TS v2) | ||||
| Library fundamentals 3(library fundamentals TS v3) | ||||
| Extensions for parallelism(parallelism TS) | ||||
| Extensions for parallelism 2(parallelism TS v2) | ||||
| Extensions for concurrency(concurrency TS) | ||||
| Extensions for concurrency 2(concurrency TS v2) | ||||
| Concepts(concepts TS) | ||||
| Ranges(ranges TS) | ||||
| Reflection(reflection TS) | ||||
| Mathematical special functions(special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
| Member functions | ||||
any::operator= | ||||
| Modifiers | ||||
| Observers | ||||
| Non-member functions | ||||
any& operator=(const any& rhs); | (1) | (library fundamentals TS) |
any& operator=( any&& rhs)noexcept; | (2) | (library fundamentals TS) |
template<typename ValueType> any& operator=( ValueType&& rhs); | (3) | (library fundamentals TS) |
Assigns contents to the contained value.
Contents |
| ValueType | - | contained value type |
| Type requirements | ||
-std::decay_t<ValueType> must meet the requirements ofCopyConstructible. | ||
| rhs | - | object whose contained value to assign |
*this
constructs anany object(public member function)[edit] |