cpp/experimental/optional/operator cmp

Performs comparison operations on objects.

@1-6@ Compares two objects,  and. The contained values are compared (using for  and  for ) only if both  and  contain values. Otherwise,


 * is considered equal to if, and only if, both  and  do not contain a value.
 * is considered less than if, and only if,  contains a value and  does not.

@7-18@ Compares with a. Equivalent to (1-6) when comparing to an that does not contain a value.

@19-30@ Compares with a. The values are compared (using for  and  for ) only if  contains a value. Otherwise, is considered less than.

Return value
@1@ If, returns @@ Otherwise, if (and so  as well), returns @@ Otherwise, returns.

@2@ Returns

@3@ If returns @@ Otherwise, if, returns @@ Otherwise returns

@4@ Returns @5@ Returns @6@ Returns

@7-8@ Returns. @9-10@ Returns. @11@ Returns. @12@ Returns. @13@ Returns. @14@ Returns. @15@ Returns. @16@ Returns. @17@ Returns. @18@ Returns.

@19@ Returns. @20@ Returns. @21@ Returns. @22@ Returns. @23@ Returns. @24@ Returns. @25@ Returns. @26@ Returns. @27@ Returns. @28@ Returns. @29@ Returns. @30@ Returns.

Exceptions
@1-6@ (none)

@19-30@ (none)