# fidl::VectorView

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a1695756d32b4b6dd2fd2cddf2c0d269f()` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a77bc157ea588cd23e6bbfcf2cfd8921d(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, size_t size)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a33b122c601a5ce69d5e5f3b0d0871109(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, size_t initial_size, size_t capacity)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a1dbc6803d6d5899d66e5029d73fcc899(std::nullptr_t data, size_t size)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a86436ece9305bc0a7a02418c50b0c2c9(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & arena, InputIterator first, InputIterator last)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a94492ce8de3b22fe09ee4fe40f149055(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & arena, https://fuchsia.dev/reference/cpp/other/singletoncpp20/span#singletoncpp20_1_1span< const T > span)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a9b7afc99b97f634bce91140a6f6721e8(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & arena, const std::vector< std::remove_cv_t< T >> & vector)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a7916b375ddd82651ad04c7f62906b241(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view &)` ||
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a8afd916e3069d5f5cc256be536c529da(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< std::remove_cv_t< T >> & other)` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a87eb561280e1adda65eb2a62140f83a9` | using `T` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1ad57ab68a715aa6394dd1072a9529fe58` | using `T` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a0cffc38e8f11f5a9bc65473bb155bfd6(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & arena, size_t size)` | `void` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a513be00ba688ae582c3305b69df6adb1(size_t offset) const ` | `T &` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1abc7d0f4bd6d3fc29df2d44ef1e80440a() const ` | `constexpr T *` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a08703a5111d8d3375d670976955b771a() const ` | `constexpr const T *` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1ac406f12ded35d6ab7859fcfd8082caf8() const ` | `constexpr const T *` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a1d25525ecd655c3b0e476c86aab2d9df() const ` | `constexpr size_t` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a4bb300335d2bf82b3f970267c31ff08e() const ` | `constexpr T *` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a80c0cf135b02790298b5cfd957c986b9() const ` | `constexpr bool` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1acaf60ace5c826356fe7496b81a940444() const ` | `constexpr T *` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a22174da08066c52c1df991798dcae932() const ` | `constexpr https://fuchsia.dev/reference/cpp/other/singletoncpp20/span#singletoncpp20_1_1span< T >` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1aa1391ca80a23382ace5115a2a84cadba() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1aca9749eb66c37aa75a9d9b0bba3e156d(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view &)=default` | `constexpr https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view &` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1af2374a0cd37fd79a2eb45274d57b6684(const https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< std::remove_cv_t< T >> & other) noexcept` | `constexpr https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view &` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a065b9cedaf5e455f8c6392f36c3ab21a(size_t offset) const ` | `T &` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a2a63b412f7c00a07b2dc81e4da98f163(size_t size)` | `void` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a7116449d724153c78cb5d43ba71086c3(size_t size)` | `constexpr void` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a34259e08dc5212840d28bfa3c4b691f7() const ` | `constexpr size_t` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1ac3ebe7e279d81f386ba6ad11928a44d4(std::vector< std::remove_cv_t< T >> & from)` | `constexpr https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< T >` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a6c4da0691e145bdcdea749d15159ab78(std::array< T, size > & from)` | `constexpr https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< T >` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1af070c3094e9f5a0f0a4dae84aba65faf(T(&) data[size])` | `constexpr https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< T >` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1ae371efefaa7887fbae4597962f2673ec(T *data, size_t size)` | `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view< T > constexpr` |

| ### Protected functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a2ff405915e56decf01df3d2e981cd30e(std::vector< std::remove_cv_t< T >> & from)` | `constexpr` |
| `https://fuchsia.dev/reference/cpp/other/singletonfidl/vector-view#singletonfidl_1_1_vector_view_1a8ad4725c3e53976efa0a0126746cb9cf(T *data, size_t size)` | `constexpr` |

## Public types

### elem_type

```c++
T elem_type
```

### value_type

```c++
T value_type
```

## Public functions

### Allocate

```c++
void Allocate(
  AnyArena & arena,
  size_t size
)
```

### VectorView

```c++
constexpr VectorView()=default
```

### VectorView

```c++
 VectorView(
  AnyArena & allocator,
  size_t size
)
```

### VectorView

```c++
 VectorView(
  AnyArena & allocator,
  size_t initial_size,
  size_t capacity
)
```

### VectorView

```c++
constexpr VectorView(
  std::nullptr_t data,
  size_t size
)
```

### VectorView

```c++
 VectorView(
  AnyArena & arena,
  InputIterator first,
  InputIterator last
)
```

### VectorView

```c++
 VectorView(
  AnyArena & arena,
  cpp20::span< const T > span
)
```

### VectorView

```c++
 VectorView(
  AnyArena & arena,
  const std::vector< std::remove_cv_t< T >> & vector
)
```

### VectorView

```c++
constexpr VectorView(
  const VectorView &
)=default
```

### VectorView

```c++
constexpr VectorView(
  const VectorView< std::remove_cv_t< T >> & other
) noexcept
```

### at

```c++
T & at(
  size_t offset
) const 
```

### begin

```c++
constexpr T * begin() const 
```

### cbegin

```c++
constexpr const T * cbegin() const 
```

### cend

```c++
constexpr const T * cend() const 
```

### count

```c++
constexpr size_t count() const 
```

### data

```c++
constexpr T * data() const 
```

### empty

```c++
constexpr bool empty() const 
```

### end

```c++
constexpr T * end() const 
```

### get

```c++
constexpr cpp20::span< T > get() const 
```

### is_null

```c++
bool is_null() const 
```

### operator=

```c++
constexpr VectorView & operator=(
  const VectorView &
)=default
```

### operator=

```c++
constexpr VectorView & operator=(
  const VectorView< std::remove_cv_t< T >> & other
) noexcept
```

### operator\[\]

```c++
T & operator[](
  size_t offset
) const 
```

### set_count

```c++
void set_count(
  size_t size
)
```

### set_size

```c++
constexpr void set_size(
  size_t size
)
```

### size

```c++
constexpr size_t size() const 
```

## Public static functions

### FromExternal

```c++
constexpr VectorView< T > FromExternal(
  std::vector< std::remove_cv_t< T >> & from
)
```

### FromExternal

```c++
constexpr VectorView< T > FromExternal(
  std::array< T, size > & from
)
```

### FromExternal

```c++
constexpr VectorView< T > FromExternal(
  T(&) data[size]
)
```

### FromExternal

```c++
VectorView< T > constexpr FromExternal(
  T *data,
  size_t size
)
```

## Protected functions

### VectorView

```c++
constexpr VectorView(
  std::vector< std::remove_cv_t< T >> & from
)
```

### VectorView

```c++
constexpr VectorView(
  T *data,
  size_t size
)
```