~/talk

“Evolving array_view and string_view for safe C++ code"

Talkat CppCon 2015 · 2015-09-21..09-25· [software-architecture]
links:none on file
slides:none on file

Proposes concrete, tested GSL types (open‑source on GitHub) that replace pointer+length idioms with array_view and string_view, used in large Microsoft C++ codebases to eliminate annotation systems and feed static tools like /analyze. Fixed‑extent views give compile‑time size errors, dynamic views always do bounds checks and fail fast, conversions from bytes require standard‑layout/alignment checks, and common helpers (first/last/sub, insureZ) ease adoption. Compiler cooperation removes most bounds‑check cost, and the implementation already interoperates across major compilers.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:47What are array_view and string_view
  3. 4:38Safety goals and design principles
  4. 9:13Key features of array_view
  5. 13:50Real-world code example with array_view
  6. 16:18How array_view improves safety
  7. 25:23Legacy code example with string_view
  8. 27:58Key features of string_view
  9. 34:57Differences from Library Fundamentals TS
  10. 46:56Performance and optimization
  11. 56:23Call to action and Q&A
~/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.