From 8d85b4c47b1d74f4e32298dde4e30b1bbb122f7b Mon Sep 17 00:00:00 2001 From: Fernando Cacciola Date: Wed, 14 Jan 2004 20:22:56 +0000 Subject: [PATCH] Fixed documentation for operator< [SVN r21738] --- doc/optional.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/optional.html b/doc/optional.html index c794e2c..4713d0d 100644 --- a/doc/optional.html +++ b/doc/optional.html @@ -921,9 +921,9 @@ assert ( optX != optZ ) ;
bool operator < ( optional<T> const& x, optional<T> const& y );
-

Returns: If both x and y are initialied, (*x < *y). -If only x or y is initialized, false. If both are uninitialized, -false. +

Returns: If y is not initialized, false. +If y is initialized and x is not initialized, true. +If both x and y are initialized, (*x < *y).

Throws: Nothing.

Notes: Pointers have shallow relational operators while optional has