std::any::type_C++中文网

const std::type_info& type() const noexcept;

(C++17 起)

查询所含类型。

参数

(无)

返回值

若实例非空则为所含值的 typeid ,否则为 typeid(void)