NPRPC docs

struct Ptr_ref

C++

struct Ptr_ref

Iterator; dereferencing gives the element's TD accessor.

include/nprpc/flat.hpp:167

Constructors

Ptr_ref(flat_buffer &b, std::uint32_t o)

Positioned at byte offset o of b.

include/nprpc/flat.hpp:207

Fields

flat_buffer &buffer

The buffer the element lives in.

include/nprpc/flat.hpp:169

std::uint32_t offset

Byte offset of the element.

include/nprpc/flat.hpp:171

Operators

bool operator!=(const Ptr_ref &other) const noexcept

Different position.

include/nprpc/flat.hpp:201

TD operator*()

The element's accessor.

include/nprpc/flat.hpp:189

Ptr_ref &operator++()

Moves to the next element.

include/nprpc/flat.hpp:174

Ptr_ref operator++(int)

Moves to the next element, returning the previous position.

include/nprpc/flat.hpp:181

bool operator==(const Ptr_ref &other) const noexcept

Same position.

include/nprpc/flat.hpp:196