mirror of
https://github.com/boostorg/optional.git
synced 2025-07-20 15:52:07 +02:00
further docs fixes
This commit is contained in:
@ -1427,10 +1427,10 @@ struct hash<boost::optional<T&> > ;
|
|||||||
} // namespace std
|
} // namespace std
|
||||||
``
|
``
|
||||||
|
|
||||||
The specialization `hash<optional<T>>`` is enabled if and only if
|
The specialization `hash<optional<T>>` is enabled if and only if
|
||||||
`hash<remove_const_t<T>> is enabled. When enabled, for an object `o`
|
`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)`
|
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.
|
evaluates to an unspecified value.
|
||||||
The member functions are not guaranteed to be `noexcept`.
|
The member functions are not guaranteed to be `noexcept`.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user