terelius f79dbadc09 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}
2017-06-16 13:48:13 +00:00
..
2017-06-16 07:57:21 +00:00
2016-12-14 23:03:11 +00:00
2016-12-14 23:03:11 +00:00
2015-12-28 22:07:05 +00:00
2015-12-28 22:07:05 +00:00
2016-08-16 13:38:23 +00:00
2017-03-27 11:37:14 +00:00
2016-07-01 10:45:29 +00:00
2016-02-02 16:34:16 +00:00
2017-04-11 05:44:07 +00:00
2017-05-13 05:52:51 +00:00
2017-03-15 11:36:29 +00:00
2017-03-15 11:36:29 +00:00
2017-04-10 13:56:58 +00:00
2016-10-03 07:30:08 +00:00