Mirror reflection library 0.5.13
|
SafeLocator is a Locator that is always dereferencable. More...
#include <mirror/doc/concepts_container.hpp>
Public Types | |
typedef BooleanConstantType | safe |
Indicating whether this is a safe locator type. | |
typedef BooleanConstantType | mutating |
Indicating whether this is a mutating locator type. | |
typedef unspecified | value_type |
The type of the element pointed to by this Locator. | |
Public Member Functions | |
bool | dereferencable (void) const |
Returns true if the locator is dereferencable. | |
operator bool (void) const | |
Shorthand for dereferencable() | |
bool | operator! (void) const |
Shorthand for !dereferencable() | |
value_type | get (void) const |
Allows to get the value of the element pointed to by the Locator. |
SafeLocator is a Locator that is always dereferencable.
When handling SafeLocators it is not necessary to check if they are dereferencable before calling get and set.