sparrow 0.3.0
|
The class vector_view describes an object that can refer to a constant contiguous sequence of T with the first element of the sequence at position zero. More...
#include <vector_view.hpp>
Public Types | |
using | base_type = std::span<T> |
using | value_type = typename base_type::value_type |
Public Member Functions | |
operator std::vector< value_type > () const noexcept | |
The class vector_view describes an object that can refer to a constant contiguous sequence of T with the first element of the sequence at position zero.
It is similar to string_view, but for arbitrary T. You can consider it as a span or range supporting const operations only, and comparison operators.
Definition at line 34 of file vector_view.hpp.
using sparrow::vector_view< T >::base_type = std::span<T> |
Definition at line 38 of file vector_view.hpp.
using sparrow::vector_view< T >::value_type = typename base_type::value_type |
Definition at line 39 of file vector_view.hpp.
|
inlineexplicitnoexcept |
Definition at line 43 of file vector_view.hpp.