#include <userver/utils/span.hpp>
A polyfill for std::span from C++20.
Public Types | |
using | iterator = T* |
Public Member Functions | |
constexpr | span (T *begin, T *end) noexcept |
constexpr | span (T *begin, std::size_t size) noexcept |
template<typename Container > | |
constexpr | span (Container &&cont) noexcept |
template<std::size_t Size> | |
constexpr | span (impl::TypeIdentity< T >(&array)[Size]) noexcept |
constexpr T * | begin () const noexcept |
constexpr T * | end () const noexcept |
constexpr T * | data () const noexcept |
constexpr std::size_t | size () const noexcept |
constexpr bool | empty () const noexcept |
constexpr span< T > | first (std::size_t count) const noexcept |
constexpr span< T > | last (std::size_t count) const noexcept |
constexpr span< T > | subspan (std::size_t offset) const noexcept |
constexpr span< T > | subspan (std::size_t offset, std::size_t count) const noexcept |
constexpr T & | operator[] (std::size_t index) const noexcept |
using utils::span< T >::iterator = T* |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |