# fidl::Box

## Summary

### Inheritance

Inherits from: std::unique_ptr\< T \>

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1ac0877799c48e20f42a29148e2dc44d96()` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a2b6620264bf9ef85024b5010204bc654(https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box && other)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a657bb2d644e40e2e84d7dd62ba968fd9(std::unique_ptr< T > ptr)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a096c403c240246c25eb129a4269db115()` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a1fa7bad33d804ee462bf0f7b70fa1379() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a8199e477601b09e6943bce8f144184ac(https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box && other) noexcept=default` | `constexpr https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a6809b6938886f09e6d0540576fc6b6cb()` | `std::unique_ptr< T > &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a1df0c5e1153f10b58c555655772f57af() const ` | `const std::unique_ptr< T > &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a8a93e1e1d09f106101029b090734fec3() const &` | `const T &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1ad4b66848341b239962c88ccb530e0722()&` | `T &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/box#classfidl_1_1_box_1a8988be3d57886ee0e988f59babfdb5a5(U && default_value) const &` | `constexpr T` |

## Public functions

### Box

```c++
constexpr Box() noexcept=default
```

### Box

```c++
constexpr Box(
  Box && other
) noexcept=default
```

### Box

```c++
constexpr Box(
  std::unique_ptr< T > ptr
) noexcept
```

### has_value

```c++
bool has_value() const 
```

### operator=

```c++
constexpr Box & operator=(
  Box && other
) noexcept=default
```

### unique_ptr

```c++
std::unique_ptr< T > & unique_ptr()
```

### unique_ptr

```c++
const std::unique_ptr< T > & unique_ptr() const 
```

### value

```c++
const T & value() const &
```

### value

```c++
T & value()&
```

### value_or

```c++
constexpr T value_or(
  U && default_value
) const &
```

### \~Box

```c++
 ~Box()=default
```