◐ Shell
clean mode source ↗

std::any::type - cppreference.com

提供: cppreference.com

<tbody> </tbody>

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

(C++17以上)

格納されている型を問い合わせます。

引数

(なし)

戻り値

インスタンスが空でなければ、格納されている値の typeid。 そうでなければ、 typeid(void)