C++0x, RValue Reference C++0x RValue Reference 라는것이 추가 되었다. RValue Reference는 Move semantics와 Perfect forwarding 이라는 두가지 기능을 가진다. 1. Move semantics 기존 부터 있던 Reference는 LValue Reference 라고 불린다. int n = 10; int &r = n; // LValue Reference int *p = &n; // 포인터 참조 방식 cout Dev/C++ 2009.05.27
C++0x Lambda 아래 링크의 글 중 Herb Sutter 의 Lambda 예제 및 설명에 관한 리플.. http://herbsutter.wordpress.com/2008/03/29/trip-report-februarymarch-2008-iso-c-standards-meeting/ []와 []안에 들어가는 내용에 대해서 명쾌하게 설명을.. Herb Sutter Re binders: Okay, I give! I’ll use a better example next time. (no name) asked: "How are local variables captured?" You have to specify whether it’s by copy or by reference. So this example is illegal beca.. Dev/C++ 2009.05.20
C++0x http://lastmind.net/2004/08/the_new_cpp_part_1.html http://lastmind.net/2004/10/the_new_cpp_part_2.html http://lastmind.net/2006/07/a_brief_look_at_cpp0x.html http://lastmind.net/2005/07/the_design_of_cpp0x.html http://lastmind.net/2005/04/schedule_for_tr2_and_cpp0x.html http://lastmind.net/2004/09/the_new_cpp_smart_pointers.html http://www.xecode.com/blog/archives/2004/10/20041012_000396.html Dev/C++ 2007.05.16