A polyfill for std::span from C++20.
Definition in file span.hpp.
Go to the source code of this file.
This graph shows which files directly or indirectly include this file:Classes | |
| class | utils::span< T > |
| A polyfill for std::span from C++20. More... | |
Namespaces | |
| namespace | utils |
| Utilities. | |
Functions | |
| template<typename Container> | |
| utils::span (Container &&cont) -> span< std::remove_reference_t< decltype(*std::begin(cont))> > | |
| template<typename T> | |
| span< const std::byte > | utils::as_bytes (span< T > s) noexcept |
| A polyfill for std::as_bytes from C++20. | |
| template<typename T, typename = std::enable_if_t<!std::is_const_v<T>>> | |
| span< std::byte > | utils::as_writable_bytes (span< T > s) noexcept |
| A polyfill for std::as_writable_bytes from C++20. | |