Skip to content

std::any

std::any type erasure,是对void *的增强。

NOTE: 关于type erasure,参见C++\Idiom\Type-Erasure章节。

microsoft std::any: How, when, and why

bfilipek Everything You Need to Know About std::any from C++17

stackoverflow When should I use std::any

cppreference std::any

open-std Any Library Proposal (Revision 3)

Implementation

fluentcpp How std::any Works

small object optimisation

stackexchange Implementation of std::any

gcc/libstdc++-v3/include/std/any

github thelink2012/any

参见 library-thelink2012-any 章节。