#include <boost/type_index.hpp>
std::cout<< boost::typeindex::type_id_with_cvr<decltype(变量)>().pretty_name() << std::endl;
std::cout<<typeid(变量).name() << std::endl;
#include <boost/type_index.hpp>
std::cout<< boost::typeindex::type_id_with_cvr<decltype(变量)>().pretty_name() << std::endl;
std::cout<<typeid(变量).name() << std::endl;
本文标题:查看auto 推导的类型
本文链接:https://www.haomeiwen.com/subject/fdwfghtx.html
网友评论