~/talk

A Safer Iteration Model for C++

Talkat C++ on Sea 2023 · 2023-06-28..06-30· [c-and-cpp]
slides:none on file

Flux presents a C++20 library called Flux that replaces pointer-style iterators with index-like first/is_last/read_at/inc primitives, returning safe values (e.g. max returns an optional) and letting users implement sequences by specializing flux_sequence_traits. Contiguous C++20 ranges map automatically; noncontiguous ranges use flux::from_range. Runtime bounds-checked read_at is elided by modern compilers and an internal-iteration hook for_each_while enables vectorized code, so Flux often matches or outperforms standard ranges; read_at_unchecked is provided when measured hotspots require it.

AI-written summary · about

  1. 0:00Intro
  2. 0:47STL Iteration
  3. 4:55What is Safety
  4. 5:52Undefined Behavior
  5. 19:15Iteration via Indices
  6. 20:34Iteration via Signed Indices
  7. 22:12Iteration via Min Indices
  8. 27:04Flux
  9. 28:52Iteration Operations
  10. 31:17Sequences
  11. 35:28Bounded sequences
  12. 38:21Algorithms
  13. 38:56Flux Pipelines
  14. 41:17Flux Pipeline Example
  15. 46:38Flux Sequence Adapters
  16. 53:27Implementation
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.