- //-------------------------------------------------------------------------
- const value_type& const_data() const throw()
- {
- return value;
- }
- //-------------------------------------------------------------------------
- value_type& data() throw()
- {
- return value;
- }
- //-------------------------------------------------------------------------
- operator const value_type&() const throw()
- {
- return value;
- }
- //-------------------------------------------------------------------------
- bool res_empty() const throw()
- {
- return !is_set;
- }
- //-------------------------------------------------------------------------
- void reset() throw()
- {
- is_set = false;
- }
- //-------------------------------------------------------------------------
-protected:
- value_type value;
- bool is_set;
+
+ const value_type & const_data() const throw() { return value; }
+ value_type & data() throw() { return value; }
+ operator const value_type&() const throw() { return value; }
+ bool res_empty() const throw() { return !is_set; }
+ void reset() throw() { is_set = false; }
+
+private:
+ value_type value;
+ bool is_set;