optional.hpp: Allow easy access to contained type
This commit is contained in:
parent
83b4de067a
commit
38419164b6
1 changed files with 3 additions and 1 deletions
|
|
@ -21,6 +21,8 @@ namespace fc {
|
|||
class optional
|
||||
{
|
||||
public:
|
||||
typedef T value_type;
|
||||
|
||||
optional():_valid(false){}
|
||||
~optional(){ reset(); }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue