function 썸네일형 리스트형 람다(Lambda) 활용하기.! c++ 0x 에 람다함수가 새로 추가 되었다.. visual studio 2010버전에서부터 쓸수 있는데.. 기본적인 람다식 auto func = []() { std::cout 더보기 std::tr1::bind / function 사용방법 #include #include using namespace std; using namespace std::tr1::placeholders; // tr1::bind에서 _1을 쓰기위한 namespace class Test { public: typedef int result_type;// operator()을 위해서 꼭 써줘야 된다! public: int operator() (int k) const { cout 더보기 이전 1 다음