What is the equivalent of C++'s std::optional<T> and std::nullopt in D?

Timoses timosesu at gmail.com
Tue Apr 3 13:07:43 UTC 2018


On Tuesday, 3 April 2018 at 02:10:09 UTC, helxi wrote:
> For reference: 
> https://en.cppreference.com/w/cpp/utility/optional

See also this topic recently discussed:
https://forum.dlang.org/post/p9qvb8$1j1n$1@digitalmars.com


More information about the Digitalmars-d-learn mailing list