std::span
was introduced in C++20, but I'm limited to C++14 and, to a lesser extent, to Boost libraries of any version. Is there something similar in Boost?
As of Boost-1.78, boost::span
is now part of the Boost core (see Boost::span docs). This is a C++11/14/17 compatible implementation of std::span
.
Does Boost provide an implementation of span for C++14?
There is no span in the boost namespace. But Boost Beast library has boost::beast::span
. It appears to not implement the same interface as std::span
exactly, but is an implementation of the same similar idea.
There is also boost::hana::span
which is something else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With