span-lite
type-utilities
span-lite | type-utilities | |
---|---|---|
2 | 1 | |
488 | 7 | |
- | - | |
5.2 | 10.0 | |
3 months ago | almost 6 years ago | |
C++ | C++ | |
Boost Software License 1.0 | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
span-lite
-
I love building a startup in Rust. I wouldn't pick it again.
Another solution: use std::span (or some alternative implementations if the codebase doesn't use C++20).
-
Passing a std:: array as a function parameter
For span only span-lite should be suffice https://github.com/martinmoene/span-lite
type-utilities
-
I love building a startup in Rust. I wouldn't pick it again.
I think the difficulty here might be exclusive to pointers and pointer-like types due to const not "propagating" across them, as you pointed out earlier. In fact, there's a propagate_const type that was proposed to address this exact issue, but it looks like such a thing never made it into the standard proper. There's also copy_cvref/clone_cvref (among other things) from P1450: Enriching type modification traits, but it seems that missed C++23 and is currently slated for C++26 :( (An implementation does appear to be available, though, so it seems to be "just" a library addition that doesn't need compiler changes).
What are some alternatives?
expected-lite - expected lite - Expected objects in C++11 and later in a single-file header-only library
BackportCpp - Library of backported modern C++ types to work with C++11
GSL - Guidelines Support Library
bit_set - Rebooting the std::bitset franchise
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
Asteroids - DOS 16bit CGA mode 6 Asteroids
serializer - A single header standard C++ serialization framework.
ring-span-lite - ring-span lite - A C++yy-like ring_span type for C++98, C++11 and later in a single-file header-only library
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
span - Implementation of C++20's std::span for older compilers
string-view-lite - string_view lite - A C++17-like string_view for C++98, C++11 and later in a single-file header-only library
C++ Middleware Writer - The repo contains library code to support messaging and serialization. There are also two programs in the repo that are needed to use the CMW.