commit | f79dbadc09255c91b9163449dfa8898a8be29744 | [log] [tgz] |
---|---|---|
author | terelius <terelius@webrtc.org> | Fri Jun 16 13:48:13 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jun 16 13:48:13 2017 |
tree | 02e36fcce9f2725d089029720883d14965ba6620 | |
parent | 0ef8fb91b4930783f0f32cbd3a68e5f98b6ebdd4 [diff] |
Add 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}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.