/**
 * Autogenerated by Thrift for /opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_fbthrift/fbthrift/work/fbthrift-2024.09.23.00/thrift/annotation/cpp.thrift
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated @nocommit
 */
#pragma once

#include "thrift/annotation/gen-cpp2/cpp_metadata.h"
#include <thrift/lib/cpp2/visitation/for_each.h>

namespace apache {
namespace thrift {
namespace detail {

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Type> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_ref()...);
    f(1, static_cast<T&&>(t).template__ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Ref> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).type_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Name> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).value_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Lazy> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).ref_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::DisableLazyChecksum> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Adapter> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_ref()...);
    f(1, static_cast<T&&>(t).adaptedType_ref()...);
    f(2, static_cast<T&&>(t).underlyingName_ref()...);
    f(3, static_cast<T&&>(t).extraNamespace_ref()...);
    f(4, static_cast<T&&>(t).moveOnly_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::PackIsset> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).atomic_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::MinimizePadding> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::ScopedEnumAsUnionType> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::FieldInterceptor> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).name_ref()...);
    f(1, static_cast<T&&>(t).noinline_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::UseOpEncode> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::EnumType> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
    f(0, static_cast<T&&>(t).type_ref()...);
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Frozen2Exclude> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::Frozen2RequiresCompleteContainerParams> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::ProcessInEbThreadUnsafe> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::RuntimeAnnotation> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::UseCursorSerialization> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};

template <>
struct ForEachField<::facebook::thrift::annotation::cpp::GenerateDeprecatedHeaderClientMethods> {
  template <typename F, typename... T>
  void operator()([[maybe_unused]] F&& f, [[maybe_unused]] T&&... t) const {
  }
};
} // namespace detail
} // namespace thrift
} // namespace apache
