ocean.core.Optional

Wraps any type in a struct that also contains boolean field indicating if value is in defined state.

If T is a value type, Optional!(T) is value type too.

Members

Functions

optional
Optional!(T) optional(T value)

Shortcut on top of Optional to created defined value, uses IFTI to reduce the noise

Structs

Optional
struct Optional(T)

ditto

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).