Closed rvarago closed 5 years ago
That is an instance of type Maybe, used to represent the absence of a value.
Additionally, added support for operator== and operator!= for Maybe, hence none, with the semantics:
Maybe<void> x; Maybe<void> y; x == y => true x != y => false
Given that it doesn't hold a value. Therefore, none will be always equal to itself.
That is an instance of type Maybe, used to represent the absence of a value.
Additionally, added support for operator== and operator!= for Maybe, hence none, with the semantics:
Given that it doesn't hold a value. Therefore, none will be always equal to itself.