寿命
「寿命」を扱った19問。日付を開くと、その日のドリルがそのまま読めます。日付の横の動物は難易度で、ハリネズミ・孔雀・バイソン・クジラの順に重くなります。
- Rust / WRITE · 2026-11-13 &mut &strで先頭を切る &mut &str, 文字列スライスを進める, 共有参照は Copy, split_at, カーソル, advance a string slice, shared reference is Copy
- C++ / DEBUG · 2026-11-04 ためた挨拶が名前を失う std::function, ラムダの参照キャプチャ, ダングリング参照, 寿命, type erasure, capture by reference, dangling reference, use after scope
- C++ / READ · 2026-10-31 if文の中で取るロック if文の初期化文, std::scoped_lock, ロックの解放, 変数の有効範囲, if statement with initializer, RAII, lock lifetime
- C++ / DEBUG · 2026-10-07 先に消える監査ログ 静的変数の破棄順序, 関数内static, Construct On First Use, 寿命の尽きたオブジェクト, static destruction order, function-local static
- C++ / DEBUG · 2026-10-03 連番のポートを返す initializer_listを返す, 背後の配列の寿命, auto x = {}, dangling initializer_list, backing array lifetime
- Rust / WRITE · 2026-09-28 充足割当を返すイテレータ SAT, 全探索, impl Trait, 戻り値のimpl Iterator, ライフタイムのキャプチャ, Rust 2024, return position impl trait, lifetime capture, lazy iterator
- C++ / WRITE · 2026-09-27 argv配列を組み立てる argv配列, nullptr終端, execvp, posix_spawnp, std::string::data, argv array, null-terminated argv
- Rust / READ · 2026-09-26 ロックはいつ外れるか MutexGuard, 一時値の寿命, if letのスコープ, Rust 2024, 確認と使用の間, temporary lifetime, if let rescope, TOCTOU
- C++ / WRITE · 2026-09-20 一時値をconst参照に 寿命延長, const参照, 一時オブジェクト, lifetime extension
- C++ / READ · 2026-09-20 一時オブジェクトの寿命 寿命延長, 一時オブジェクト, const参照, temporary lifetime
- Rust / DEBUG · 2026-09-14 while letの一時値 一時オブジェクト, while let, 寿命, temporary lifetime
- C++ / READ · 2026-09-14 範囲forと一時オブジェクト 範囲for, 一時オブジェクト, ダングリング, range-based for
- Rust / WRITE · 2026-09-09 カーソルの次のページ カーソル方式のページング, partition_point, スライスを返す, 二分探索, cursor pagination, keyset pagination
- Rust / DEBUG · 2026-09-07 局所変数を返す ライフタイム, 局所変数, ダングリング, dangling reference
- C++ / DEBUG · 2026-09-07 参照メンバと一時値 参照メンバ, 一時オブジェクト, ダングリング, dangling reference
- Zig / DEBUG · 2026-08-30 消えた配列を指すスライス ダングリングポインタ, ローカル変数のアドレス, スライスを返す, 配列を値で返す, dangling slice, stack memory
- C++ / READ · 2026-08-24 const参照と寿命延長 寿命延長, const参照, 一時オブジェクト, lifetime extension
- C++ / DEBUG · 2026-08-22 返してはいけない参照 ダングリング参照, 局所変数, 寿命, dangling reference
- C / DEBUG · 2026-08-20 局所変数への参照 ダングリングポインタ, 局所変数, 寿命, dangling pointer