摘要:
####1、decltype介绍 decltype(declare type,声明类型)为C++11 新增的关键字,和auto功能一样,用于在编译期间进行自动类型推导。 auto和decltype关键字都可以自动推导出变量的类型,但他们的用法是有区别的: auto varname = value; 阅读全文
posted @ 2022-01-08 22:57
牛犁heart
阅读(164)
评论(0)
推荐(0)
摘要:
去除string前面或后面的空白符 // trim from start (construct new string) inline std::string ltrim(const std::string &str) { std::string s(str); s.erase(s.begin(), 阅读全文
posted @ 2022-01-08 22:41
牛犁heart
阅读(414)
评论(0)
推荐(0)
摘要:
####1、问题引入 在阅读https://github.com/amhndu/SimpleNES源代码中ppu.cpp中发现如下代码 m_bgPage = static_cast<CharacterPage>(!!(ctrl & 0x10)); m_sprPage = static_cast<Ch 阅读全文
posted @ 2022-01-08 22:19
牛犁heart
阅读(636)
评论(0)
推荐(0)

浙公网安备 33010602011771号