摘要:
"关于c++11中的右值引用" ,这篇文章讲得清晰透彻。涵盖左值与右值的定义, ,`auto&& && T&& &&`是universal reference, rvlue reference。(👍) 对于写程序来说,以下左右值定义足够: 1. If you can take the addres 阅读全文
摘要:
c++字符串的spilit 字符串分割是处理字符串的常见问题,以下提供几种解决方案。 初始版本 c++ include include include include // 采用正则版本 std::vector split(std::string &text) { std::regex ws_re( 阅读全文