FIND YOUR NEXT FEW LINES
Results for “live”
Small, practical examples. Search by task or narrow things down below.
16 snippets foundClear filters
Inspect a substring without allocating a copy
C++: A string_view refers to existing storage and must not outlive that storage.
C++✓ Tested
List remote-tracking branches after a fetch
Git: Remote-tracking references describe the last fetched state rather than live remote state.
Git✓ Tested
Share data through a named volume
Keep a file across two short-lived containers.
volume✓ Tested
Share ownership with a counted smart pointer
C++: Copies of shared_ptr keep the owned value alive until the last owner is released.
C++✓ Tested