Karl Wiberg 6e587200db Introduce rtc::Maybe<T>, which either contains a T or not.
It's a simple std::experimental::optional-wannabe. For simplicity and
portability, it still secretly contains a (default-constructed) T when
it's supposedly empty. This restriction is fine for simple types.

One important application is for the return type of functions. For
example, a function which either returns a size_t or fails can return
rtc::Maybe<size_t>.

BUG=webrtc:5028
R=andrew@webrtc.org, mgraczyk@chromium.org

Review URL: https://codereview.webrtc.org/1413763003 .

Cr-Commit-Position: refs/heads/master@{#10353}
2015-10-21 10:44:17 +00:00
..
2015-09-24 13:07:04 +00:00
2015-09-24 13:07:04 +00:00
2015-04-20 12:03:00 +00:00
2015-04-02 10:31:00 +00:00
2015-04-20 12:03:00 +00:00
2015-06-10 18:33:24 +00:00
2015-08-15 16:28:46 +00:00
2015-05-21 11:50:41 +00:00
2015-05-21 11:50:41 +00:00
2015-04-01 22:25:29 +00:00
2015-10-08 16:43:03 +00:00
2015-10-08 16:43:03 +00:00
2015-04-01 15:08:49 +00:00
2015-10-07 11:58:00 +00:00
2015-09-22 18:58:13 +00:00
2015-10-08 16:43:03 +00:00
2015-10-08 16:43:03 +00:00
2015-10-07 11:58:00 +00:00