카테고리 : 코드 요약보기전체보기목록닫기

1 2 3 4 5 6 7 8 9

템플릿 메타프로그래밍 연습 #3

template <class T, class U> class conversion {     typedef char small;     class big { char dummy[2]; };     static small tes...

템플릿 메타프로그래밍 연습 #2

typedef unsigned long const fact_type; template <unsigned long N> struct factorial {     static fact_type value = N * factorial<N-1>::value; }; template <...

템플릿 메타프로그래밍 연습 #1

#include <boost/mpl/deref.hpp> #include <boost/mpl/find.hpp> #include <boost/mpl/vector.hpp> #include <boost/static_assert.hpp> namespace mpl = boost::mpl; typedef m...
1 2 3 4 5 6 7 8 9