struct TableMemberVisitor
Defined at line 354 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/internal/natural_types.h
Public Methods
template <typename U, typename Fn>
void VisitPrevAndCurOrdinals (U value, Fn && func)
Visit all of the members in order, calling |func| with the previous member ordinal and the
current member ordinal. The main purpose of this function is to optimize closing unknown
envelopes in tables. The compiler can deterministically omit unknown envelope code paths if
it statically knows that there is no gap between two ordinals.
|func| should have the signature:
void func(
Member* member_ptr,
const fidl::internal::NaturalTableMember
<
...>
&
member_info,
std::integral_constant
<size
_t, PreviousOrdinal>,
std::integral_constant
<size
_t, CurrentOrdinal>,
);
Defined at line 371 of file ../../sdk/lib/fidl/cpp/include/lib/fidl/cpp/internal/natural_types.h