Registry / utility / tcb-span

tcb-span

JSON →
library2022-06-15vcpkgunverified

Implementation of C++20's std::span for older compilers

vcpkg install tcb-span
INSTALL
IMPORT
SIG · TCB-SPAN
T
tcb-span
utilitycppv2022-06-15
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.

tcb/span.hpp
✓ #include <tcb/span.hpp>

Use tcb::span as a C++20 std::span replacement

#include <tcb/span.hpp> #include <iostream> #include <vector> int main() { std::vector<int> vec = {1, 2, 3, 4}; tcb::span<int> sp(vec); for (auto& v : sp) { std::cout << v << ' '; } std::cout << std::endl; return 0; }
Debug
Known issues
gotchaHeader-only; no linking required
fix
Just include the header; no CMake target needed if using directly
affects: *
Upgrade
Version history
2022-06-15latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources

No resource links recorded.

tcb-span — pip install tcb-span · libregistry