본문 바로가기

Native/C++

c++0x

[code]
template<class T> using Vec = vector<T,My_alloc<T>>;
Vec<double> v = { 2.3, 1.2, 6.7, 4.5 };
sort(v);
for(auto p = v.begin(); p!=v.end(); ++p)
    cout << *p << endl;
[/code]

아름답도다.

'Native > C++' 카테고리의 다른 글

unittest++ (TDD)  (0) 2013.10.02
blowfish  (0) 2013.10.02
cppunit  (0) 2013.10.02
leak detector  (0) 2013.10.02
unit test tools  (0) 2013.10.02