bi-06 step 01 — Ownership audit

Goal

Read five functions you have already met and account for every lifetime decision. This is a reading exercise, not a writing one.

Tasks

  1. Pick five functions from bi-03/bi-04 you have already navigated to.
  2. For each, write one sentence naming every ownership decision: who owns what, what may die, what is merely borrowed.
  3. Classify every pointer you see: unique_ptr / scoped_refptr / raw_ptr / Member<T> / Persistent<T> / bare T* / T&.
  4. Find one base::Unretained. Determine what guarantees the receiver outlives the callback. If you cannot determine it in ten minutes, record that — it is a real finding about the code.
  5. Find one class with SEQUENCE_CHECKER. Name its sequence and how you know.

Done when

  • Five functions annotated
  • One Unretained lifetime argument written out (or its difficulty recorded)
  • You can state the difference between raw_ptr<T> and Member<T> and when each is wrong