Léo Lam b08653d69d Common: Add a std::optional implementation
std::optional makes a few things a bit neater and less error prone.
However, we still cannot use C++17 (unfortunately), so this commit
adds an implementation of std::optional that we can use right now.

Based on https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/lib/gtl/optional.h
which seems to be fairly similar to C++17's <optional> and standards
compliant. It's one of the few implementations that handle propagating
type traits like copy constructibility, just like libc++/libstdc++.
2017-06-03 12:36:24 +02:00
..
2017-05-13 15:22:29 +01:00
2017-05-02 23:49:22 +02:00
2016-12-06 20:33:53 +01:00
2017-05-03 08:02:35 +01:00
2017-05-03 08:02:35 +01:00
2017-03-23 15:28:58 -04:00
2017-01-14 11:16:02 -05:00
2015-05-25 13:11:47 +02:00
2017-01-14 19:00:19 +01:00
2017-05-19 19:13:16 +02:00
2017-05-03 06:40:52 +01:00
2017-05-03 06:40:52 +01:00
2017-04-12 06:15:18 +01:00
2016-07-16 22:48:46 +02:00
2016-07-16 22:48:46 +02:00
2017-05-20 09:35:53 +02:00
2017-01-17 20:46:48 -05:00
2017-01-17 20:46:48 -05:00
2017-03-04 19:19:42 -05:00
2017-03-27 23:46:19 -04:00
2017-01-24 03:31:51 +01:00