Guideline Support Library (GSL)
summary
Five concrete GSL features and how they behave: gsl::finally runs a lambda on scope exit so cleanup always executes across returns and exceptions; gsl::narrow checks runtime conversions and throws on out‑of‑range (example: int→char fails at 300); gsl::not_null enforces nonnullable pointers as a compile‑time contract and aborts if constructed from null; gsl::owner is a syntactic ownership annotation for static analysis; gsl::span provides bounds‑checked views. Install via vcpkg or clone GitHub and include gsl/gsl.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:40What is GSL
- 1:08Overview
- 1:41GSL Finally
- 3:19GSL Narrow
- 4:09GLSL Not Null
- 5:32GLSL Owner
- 6:39GLSL Span
- 7:16Integration
- 7:51Conclusion
related talks
01h 29mC++ Core Guidelines - Modernize your C++ Code Base
01h 00mThe Guideline Support Library: One Year Later
57mA Short Life span - For A Regular Mess
01h 41mWriting Good C++14
19mA Library Modeling Language for the Static Analysis of C Programs
54mGeneric Programming Without (Writing Your Own) Templates
01h 36mBuilding C++ Interfaces That Are Hard to Use Incorrectly
55mC++ Core and Other C++ Guidelines - The Good, the Bad, the… Questionable?
