Registry / utility / ms-gsl

ms-gsl

JSON →
library4.2.1vcpkgunverified

Microsoft implementation of the Guidelines Support Library, providing types like span and not_null for safer C++ code.

vcpkg install ms-gsl
INSTALL
IMPORT
SIG · MS-GSL
M
ms-gsl
utilitycppv4.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gsl/gsl
#include <gsl/gsl>

Use gsl::span to view a contiguous sequence of elements.

#include <gsl/gsl> #include <iostream> #include <vector> int main() { std::vector<int> vec = {1, 2, 3}; gsl::span<int> sp(vec); for (auto& v : sp) { std::cout << v << ' '; } return 0; }
Debug
Known issues
gotchaHeader-only library; no linking required.
fix
Simply include the headers; no target_link_libraries needed if using header-only mode.
affects: all
Upgrade
Version history
4.2.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

ms-gsl — pip install ms-gsl · libregistry