Returns a pointer to the value of an Optional, or nullptr if empty.
Declared in <folly/Optional.h>
template<class T>
T const*
get_pointer(Optional<T> const& opt);
A const pointer to the value, or nullptr if empty.
| Name | Description |
|---|---|
| opt | The Optional to inspect. |