optional.hpp: Allow easy access to contained type

This commit is contained in:
theoreticalbts 2016-02-26 14:22:11 -05:00
parent 83b4de067a
commit 38419164b6

View file

@ -21,6 +21,8 @@ namespace fc {
class optional class optional
{ {
public: public:
typedef T value_type;
optional():_valid(false){} optional():_valid(false){}
~optional(){ reset(); } ~optional(){ reset(); }