2017年1月18日

asdfadsf

摘要: bool is_r_value(int &&) { return true; } bool is_r_value(const int &) { return false; } void test(int && i) { is_r_value(i); // i为具名变量,即使被宣告成右值引用类型,i作为实参表达式也不会被认定是右值表达式。 is_r_value(std::move(... 阅读全文

posted @ 2017-01-18 10:09 李玉龙 阅读(195) 评论(0) 推荐(0) 编辑

导航