further docs fixes

This commit is contained in:
Andrzej Krzemienski
2022-05-23 22:42:04 +02:00
parent a514ce627d
commit ce5834add2

View File

@ -1427,10 +1427,10 @@ struct hash<boost::optional<T&> > ;
} // namespace std
``
The specialization `hash<optional<T>>`` is enabled if and only if
`hash<remove_­const_­t<T>> is enabled. When enabled, for an object `o`
The specialization `hash<optional<T>>` is enabled if and only if
`hash<remove_­const_­t<T>>` is enabled. When enabled, for an object `o`
of type `optional<T>`, if `o.has_­value() == true`, then `hash<optional<T>>()(o)`
evaluates to the same value as `hash<remove_­const_­t<T>>()(*o)``; otherwise it
evaluates to the same value as `hash<remove_­const_­t<T>>()(*o)`; otherwise it
evaluates to an unspecified value.
The member functions are not guaranteed to be `noexcept`.