「More C++ Idioms/整数から型(Int-To-Type)」の版間の差分

削除された内容 追加された内容
→‎Intent: if I was wrong please add an explanation to the term
43 行
static const int algo = (N==0) ? NOOP :
(N==1) ? NOOP :
(N<50) ? INSERTION_SORT : QUICK_SORT;
void sort (Int2Type<NOOP>) { std::cout << "NOOP\n"; }
void sort (Int2Type<INSERTION_SORT>) { std::cout << "INSERTION_SORT\n"; }