Skip to content
r.

gsl-lite

gsl-lite/gsl-lite · Public GitHub repository

ISO C++ Core Guidelines Library implementation for C++98, C++11 up

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

gsl-lite live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

gsl-lite is a portable, single-file, header-only library for defensive programming based on the C++ Core Guidelines Support Library specification.

gsl-lite is different from Microsoft GSL, the default implementation of the C++ Core Guidelines support library (GSL), in the following ways:

retains the copyability and movability of P and therefore may have a moved-from state, which Microsoft GSL expressly disallows. As a consequence, notnull> is movable in gsl-lite but not in Microsoft GSL.

Requirements and intended audience

gsl-lite is a portable, single-file, header-only library for defensive programming based on the C++ Core Guidelines Support Library specification.

gsl-lite defines feature testing macros and polyfills useful for targeting multiple versions of C++.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-02. Source: https://github.com/gsl-lite/gsl-lite/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-08-20. Saved release: v1.1.1 · 2026-08-20. These dates do not guarantee ongoing maintenance.

Technologies
C++
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories