iterator_pointer

namespace opentl {
    template <typename It>
    struct iterator_pointer;

    template <typename It>
    using iterator_pointer_t = typename iterator_pointer<It>::type;
}

The pointer type of an iterator.

Declared in <iterator/iterator_pointer.hpp>.

Template Parameters

Name Description
It The iterator type.

Member Types

Type Description
type The pointer type.

Aliases

Name Description
iterator_pointer_t Helper alias for iterator_pointer.

Remarks

The pointer type is the one declared by the iterator as its pointer member type, otherwise it is deduced from the address of the dereferenced element. The traits are empty when neither source is available.

Example

#include <opentl/iterator.hpp>

static_assert(opentl::same_as<opentl::iterator_pointer_t<int*>, int*>);

int main() {}