# fidl::ObjectView

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1ab09368bebb7c6573b5b6632b206822ba()` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a600ac9e7448e3df811326009fa165301(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, Args &&... args)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a51a97f1210a47f2a2f5f1aaef28a7800(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, T && obj)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a6b976b30b867cc07a2d026d8d55bf0f5(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, const T & obj)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1ab81702e7f281e8311b4ce5023255dc27(std::nullptr_t)` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a889d2df23b359013d956fe1b5fe82f41(https://fuchsia.dev/reference/cpp/class/fidl/any-arena#classfidl_1_1_any_arena & allocator, Args &&... args)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1ad4a29731bb319188fb98e926b8ca232d() const noexcept` | `T *` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1aa549fa910ca160f3a4125008ff8bb91c() const noexcept` | ` `` ` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1aeffca9099c5496c77f9c5c60f2756cb8(std::nullptr_t) const noexcept` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a16d0cb275b525e8ea8fa94aa8af77bec() const ` | `U &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1abd7c7bb3140988dd83fde77ae62264e0() const noexcept` | `U *` |
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1ab7745daf01fd44a330d88646bcff12fe(std::nullptr_t) const noexcept` | `bool` |

| ### Public static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view_1a7cd1996e6eb8720b17ca04227eaa24a5(T *from)` | `https://fuchsia.dev/reference/cpp/class/fidl/object-view#classfidl_1_1_object_view< T >` |

## Public functions

### Allocate

```c++
void Allocate(
  AnyArena & allocator,
  Args &&... args
)
```

### ObjectView

```c++
 ObjectView()=default
```

### ObjectView

```c++
 ObjectView(
  AnyArena & allocator,
  Args &&... args
)
```

### ObjectView

```c++
 ObjectView(
  AnyArena & allocator,
  T && obj
)
```

### ObjectView

```c++
 ObjectView(
  AnyArena & allocator,
  const T & obj
)
```

### ObjectView

```c++
 ObjectView(
  std::nullptr_t
)
```

### get

```c++
T * get() const noexcept
```

### operator bool

```c++
 operator bool() const noexcept
```

### operator!=

```c++
bool operator!=(
  std::nullptr_t
) const noexcept
```

### operator\*

```c++
U & operator*() const 
```

### operator-\>

```c++
U * operator->() const noexcept
```

### operator==

```c++
bool operator==(
  std::nullptr_t
) const noexcept
```

## Public static functions

### FromExternal

```c++
ObjectView< T > FromExternal(
  T *from
)
```