Proxy to return from operator>.
More...
#include <Array.h>
Public Member Functions | |
| pointer (const ArrayIterator &i) | |
| Proxy constructor. | |
| value_type | operator* () const |
| Dereference the proxy. | |
| const value_type * | operator-> () const |
| Dereference the proxy. | |
Proxy to return from operator>.
operator-> is required to either return an actual C++ pointer or another object that has a valid operator->. This makes things a bit tricky if you're using proxies. We have the ArrayIterator operator-> return an instance of this proxy class, which contains an instance of the Array proxy. The operator-> of this proxy then returns a pointer to the contained Array. This will work for most common usages. However, the pointer one gets from the operator-> here will only be valid until the proxy is destroyed.
| CxxUtils::ArrayIterator< N >::pointer::pointer | ( | const ArrayIterator & | i | ) | [inline] |
Proxy constructor.
| i | The iterator that is being dereferenced. |
| ArrayIterator< N >::value_type CxxUtils::ArrayIterator< N >::pointer::operator* | ( | ) | const [inline] |
Dereference the proxy.
Array proxy. | const ArrayIterator< N >::value_type * CxxUtils::ArrayIterator< N >::pointer::operator-> | ( | ) | const [inline] |
1.6.1