fidl::VectorView
Summary
Protected functions
|
VectorView(std::vector< std::remove_cv_t< T >> & from)
|
|
VectorView(T *data, size_t count)
|
|
Public types
Public functions
Allocate
void Allocate(
AnyArena & arena,
size_t count
)
VectorView
VectorView()=default
VectorView
VectorView(
AnyArena & allocator,
size_t count
)
VectorView
VectorView(
AnyArena & allocator,
size_t initial_count,
size_t capacity
)
VectorView
VectorView(
std::nullptr_t data,
size_t count
)
VectorView
VectorView(
AnyArena & arena,
InputIterator first,
InputIterator last
)
VectorView
VectorView(
AnyArena & arena,
const std::vector< std::remove_cv_t< T >> & vector
)
at
T & at(
size_t offset
) const
cbegin
const T * cbegin() const
cend
const T * cend() const
count
size_t count() const
is_null
bool is_null() const
operator[]
T & operator[](
size_t offset
) const
set_count
void set_count(
size_t count
)
Public static functions
FromExternal
VectorView< T > FromExternal(
std::vector< std::remove_cv_t< T >> & from
)
FromExternal
VectorView< T > FromExternal(
std::array< T, size > & from
)
FromExternal
VectorView< T > FromExternal(
T(&) data[size]
)
FromExternal
VectorView< T > FromExternal(
T *data,
size_t count
)
Protected functions
VectorView
VectorView(
std::vector< std::remove_cv_t< T >> & from
)
VectorView
VectorView(
T *data,
size_t count
)
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 2024-09-27 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 2024-09-27 UTC."],[],[]]