/**
 * Autogenerated by Thrift for thrift/compiler/test/fixtures/mcpp2-compare/src/extra_services.thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated @nocommit
 */
#pragma once

#include "thrift/compiler/test/fixtures/mcpp2-compare/gen-cpp2/extra_services_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::extra::svc::containerStruct2> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).fieldA_ref()...);
    f(1, static_cast<T&&>(t).req_fieldA_ref()...);
    f(2, static_cast<T&&>(t).opt_fieldA_ref()...);
    f(3, static_cast<T&&>(t).fieldB_ref()...);
    f(4, static_cast<T&&>(t).req_fieldB_ref()...);
    f(5, static_cast<T&&>(t).opt_fieldB_ref()...);
    f(6, static_cast<T&&>(t).fieldC_ref()...);
    f(7, static_cast<T&&>(t).req_fieldC_ref()...);
    f(8, static_cast<T&&>(t).opt_fieldC_ref()...);
    f(9, static_cast<T&&>(t).fieldD_ref()...);
    f(10, static_cast<T&&>(t).fieldE_ref()...);
    f(11, static_cast<T&&>(t).req_fieldE_ref()...);
    f(12, static_cast<T&&>(t).opt_fieldE_ref()...);
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
