查看auto 推导的类型

2020-05-01  本文已影响0人  Barry_Xu
#include <boost/type_index.hpp>

std::cout<< boost::typeindex::type_id_with_cvr<decltype(变量)>().pretty_name() << std::endl;
std::cout<<typeid(变量).name() << std::endl;
上一篇 下一篇

猜你喜欢

热点阅读