DescriptionAdd has_value() and value() methods to rtc::Optional.
These methods have the same behavior as their counterparts in std::optional, except that rtc::Optional::value() requires that the value exists whereas std::optional::value() throws an exception.
BUG=webrtc:7843
Review-Url: https://codereview.webrtc.org/2942203002
Cr-Commit-Position: refs/heads/master@{#18631}
Committed: https://chromium.googlesource.com/external/webrtc/+/f79dbadc09255c91b9163449dfa8898a8be29744
Patch Set 1 #
Total comments: 2
Patch Set 2 : Reorder declarations #
Messages
Total messages: 16 (11 generated)
|