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 (by martinmoene)
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 (by martinmoene)
ring-span-lite | string-view-lite | |
---|---|---|
1 | 2 | |
147 | 401 | |
- | - | |
4.9 | 4.1 | |
4 months ago | 4 months ago | |
C++ | C++ | |
Boost Software License 1.0 | Boost Software License 1.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
ring-span-lite
Posts with mentions or reviews of ring-span-lite.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-12-18.
-
Project: STL-compatible ring buffer
Would be interesting to know how it compares, both functionality-wise and performance-wise, to ring_span lite: https://github.com/martinmoene/ring-span-lite
string-view-lite
Posts with mentions or reviews of string-view-lite.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-13.
-
Is there a std::string::split or something similar?
There are plenty of polyfill libraries that exist for std features like this. I strongly recommend using an existing one that attempts to match the standard closely. For example this one.
-
Use const char* or std::string for string literals?
I see that there is this https://github.com/martinmoene/string-view-lite. Might use it in our project going forward.
What are some alternatives?
When comparing ring-span-lite and string-view-lite you can also consider the following projects:
span-lite - span lite - A C++20-like span for C++98, C++11 and later in a single-file header-only library
semver - Semantic Versioning for modern C++
doctest - The fastest feature-rich C++11/14/17/20/23 single-header testing framework
robin-hood-hashing - Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
ringbuf - An STL-like ring buffer for C++11.
Nameof C++ - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum
scope_guard - A modern C++ scope guard that is easy to use but hard to misuse.