Hold a single value, returning a cached value if there is one. More...
#include <cached_value.h>

Public Types | |
| typedef T | value_type |
Public Member Functions | |
| cached_value () | |
| value_type const | get () const |
| return the cached value | |
| bool | cached () const |
| return true if a value is cached | |
| value_type const | reset (value_type const &val) |
| set the contained value | |
Hold a single value, returning a cached value if there is one.
| typedef T cached_value< T >::value_type |
| cached_value< T >::cached_value | ( | ) | [inline] |
| bool cached_value< T >::cached | ( | ) | const [inline] |
return true if a value is cached
| value_type const cached_value< T >::get | ( | ) | const [inline] |
return the cached value
| value_type const cached_value< T >::reset | ( | value_type const & | val | ) | [inline] |
set the contained value
1.6.1