The current implementation of the and_then and transform return OptionalWithFlagValue<T>.
These could be changed to return Optional<*type based on the parameter's return type*>.
Also, the const overloads of these functions are missing. They should be added as well.
The current implementation of the
and_then
andtransform
returnOptionalWithFlagValue<T>
. These could be changed to returnOptional<*type based on the parameter's return type*>
.Also, the
const
overloads of these functions are missing. They should be added as well.