テンプレート
「テンプレート」を扱った9問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- C++ / DEBUG · 2026-11-16 autoで退避した先頭 vector<bool>, auto, 型推論, 代理オブジェクト, 値の退避, 関数テンプレート, proxy reference, auto type deduction, vector<bool>::reference
- C++ / WRITE · 2026-11-15 定義のない関数で型を選ぶ 関数宣言, 定義のない関数, decltype, declval, オーバーロード解決, 評価されないオペランド, パラメータパック, unevaluated operand, overload resolution
- C++ / READ · 2026-11-05 '0'+nとstd::max 整数昇格, 文字と数値の変換, テンプレート引数の推論, std::max, integer promotion, template argument deduction, char arithmetic
- C++ / READ · 2026-10-24 文字列を比べるテスト テストの比較関数, const char* の比較, 配列からポインタへの変換, 文字列の等値比較, pointer comparison, string literal, expect_eq
- C++ / WRITE · 2026-10-13 k個を残しながら読む リザーバサンプリング, 件数不明の入力, 一様な抽出, reservoir sampling, Algorithm R, streaming sample
- C++ / READ · 2026-10-04 doubleを受け取るのは誰 std::visit, overloadedイディオム, ジェネリックラムダ, オーバーロード解決, overloaded lambdas, visitor overload resolution
- C++ / DEBUG · 2026-10-04 CSVの引用符が付かない decltypeと参照, std::remove_cvref_t, if constexpr, std::is_same_v, decltype of reference parameter, CSV quoting
- C++ / READ · 2026-08-28 型の値は何通り 型の要素数, 直積型と直和型, tuple の値の個数, variant の値の個数, cardinality of a type, product type, sum type
- C++ / READ · 2026-08-26 現れない組でも呼び出す std::visit, std::variant, overloadedパターン, 多重ディスパッチ, あいまいな呼び出し, overload resolution, multiple dispatch, ambiguous call