STL-any source code reading

13bOkrO.png

std::any is a standard container defined by C++17 that supports arbitrary copyable types. The description is as follows:

The class any describes a type-safe container for single values ​​of any copy constructible type.

This article is reproduced from https://bbing.com.cn/202207/cpp-stl-any/
This site is for inclusion only, and the copyright belongs to the original author.

Leave a Comment