fidl::VectorView
Summary
Protected functions
|
VectorView(std::vector< std::remove_cv_t< T >> & from)
|
constexpr
|
VectorView(T *data, size_t size)
|
constexpr
|
Public types
Public functions
Allocate
void Allocate(
AnyArena & arena,
size_t size
)
VectorView
constexpr VectorView()=default
VectorView
VectorView(
AnyArena & allocator,
size_t size
)
VectorView
VectorView(
AnyArena & allocator,
size_t initial_size,
size_t capacity
)
VectorView
constexpr VectorView(
std::nullptr_t data,
size_t size
)
VectorView
VectorView(
AnyArena & arena,
InputIterator first,
InputIterator last
)
VectorView
VectorView(
AnyArena & arena,
const std::vector< std::remove_cv_t< T >> & vector
)
VectorView
constexpr VectorView(
const VectorView &
)=default
VectorView
constexpr VectorView(
const VectorView< std::remove_cv_t< T >> & other
) noexcept
at
T & at(
size_t offset
) const
begin
constexpr T * begin() const
cbegin
constexpr const T * cbegin() const
cend
constexpr const T * cend() const
count
constexpr size_t count() const
data
constexpr T * data() const
empty
constexpr bool empty() const
end
constexpr T * end() const
is_null
bool is_null() const
operator=
constexpr VectorView & operator=(
const VectorView< std::remove_cv_t< T >> & other
) noexcept
operator[]
T & operator[](
size_t offset
) const
set_count
void set_count(
size_t size
)
set_size
constexpr void set_size(
size_t size
)
size
constexpr size_t size() const
Public static functions
FromExternal
constexpr VectorView< T > FromExternal(
std::vector< std::remove_cv_t< T >> & from
)
FromExternal
constexpr VectorView< T > FromExternal(
std::array< T, size > & from
)
FromExternal
constexpr VectorView< T > FromExternal(
T(&) data[size]
)
FromExternal
VectorView< T > constexpr FromExternal(
T *data,
size_t size
)
Protected functions
VectorView
constexpr VectorView(
std::vector< std::remove_cv_t< T >> & from
)
VectorView
constexpr VectorView(
T *data,
size_t size
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-18 UTC."],[],[],null,[]]