~/talk

A Short Life span<> For a Regular Mess - std::span

Talkat CppCon 2019 · 2019-09-15..09-20· [software-architecture]
slides:none on file

Argues that std::span is a borrow type with shallow-copy semantics, not a regular container: equality operators were removed rather than commit to confusing deep or shallow comparisons, making span effectively semi-regular. Recommends using span and string_view only as cheap by-value function parameters, not stored long-term. Notes practical tooling: GSL, clang-tidy checks and upcoming clang -Wdangling-gsl warnings that catch dangling temporaries. Surveys future work (multi-dimensional span, range-based views) and explains why these design choices matter.

AI-written summary · about

  1. 0:00Introduction
  2. 2:27Fundamentals of Programming
  3. 4:04Mathematical Foundations
  4. 8:28Principles of C++ Design
  5. 12:39STL Design Philosophy
  6. 15:10Concepts and Requirements
  7. 18:20Equality and Ordering
  8. 20:26Spaceship Operator
  9. 23:25String View analysis
  10. 27:52Std::span design and use
  11. 34:09Span evolution and issues
  12. 39:13Semi-regular types
  13. 43:30Borrow type safety
  14. 47:57Implementation and caveats
  15. 50:42Future directions and ranges
  16. 51:58Conclusion
  17. 52:54Q&A Session
~/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.