The Guideline Support Library: One Year Later
summary
The Guideline Support Library is a small, header-only set of portable types (about 3k LOC, 353 commits, 232 stars, 41 contributors) that ships on GitHub and as header-only vcpkg and nuget packages. span is on the standardization path (renamed from array_view) and byte is expected for C++20; string_span withdraws in favor of std::string_view. Contracts use ensures/expect macros and not_null has open design questions around smart pointers. Work focuses on span optimization in MSVC update 2 (x64) to make runtime checks effectively zero-overhead and on better docs and releases; a test suite exists.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:03Past Year Recap
- 2:04GSL Implementation Status
- 3:33Community Process
- 5:28GSL Core Principles
- 6:48Types and Library Features
- 10:39Contract Support
- 13:08Standard Library Relationship
- 15:12GSL Resources and Versions
- 17:42Documentation Efforts
- 19:05Microsoft GSL Adoption
- 21:47Standardization of Key Types
- 26:01Byte Type Implementation
- 28:26Toy Example Analysis
- 33:39Implementation Milestones
- 34:10Future GSL Plans
- 36:57Performance Tuning
- 43:23Q&A Session
related talks
09mGuideline Support Library (GSL)
57mA Short Life span - For A Regular Mess
01h 29mC++ Core Guidelines - Modernize your C++ Code Base
55mC++ Core and Other C++ Guidelines - The Good, the Bad, the… Questionable?
01h 41mWriting Good C++14
01h 30mTaming C++23 - The Things About C++23 You Do Not Know
01h 04mHow to Use string_view in C++ - Basics, Benefits, and Best Practices
01h 01mC++ Committee's Library Evolution Working Group
