Template Class vector_view

Class Documentation

template<class T, bool is_const = false>
class legion::core::vector_view

Public Types

using vector_type = std::vector<T>
using size_type = typename vector_type::size_type
using difference_type = typename vector_type::difference_type
using iterator = typename vector_type::iterator
using const_iterator = typename vector_type::const_iterator
using size_type = typename vector_type::size_type

Public Functions

inline explicit vector_view(std::nullptr_t)
inline explicit vector_view(typename std::conditional<is_const, const vector_type*, vector_type*>::type tv, size_type size, difference_type offset)
vector_view(const vector_view&) = default
vector_view(vector_view&&) noexcept = default
inline vector_view &operator=(vector_view &&other) noexcept
inline vector_view &operator=(const vector_view &other)
~vector_view() = default
template<typename = std::enable_if_t<is_const>>
inline iterator begin()
inline const_iterator begin() const
template<typename = std::enable_if_t<is_const>>
inline iterator end()
inline const_iterator end() const
template<typename = std::enable_if_t<is_const>>
inline auto data()
inline auto data() const -> const T*
inline auto size() const noexcept
inline auto max_size() const noexcept