Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / any / gen-cpp2 / module_for_each_field.h
blob6f9ee1776aa1d6828c7402fe6df8de6e7f8dfa93
1 /**
2 * Autogenerated by Thrift for src/module.thrift
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated @nocommit
6 */
7 #pragma once
9 #include "thrift/compiler/test/fixtures/any/gen-cpp2/module_metadata.h"
10 #include <thrift/lib/cpp2/visitation/for_each.h>
12 namespace apache {
13 namespace thrift {
14 namespace detail {
16 template <>
17 struct ForEachField<::cpp2::MyStruct> {
18 template <typename F, typename... T>
19 void operator()(FOLLY_MAYBE_UNUSED F&& f, FOLLY_MAYBE_UNUSED T&&... t) const {
20 f(0, static_cast<T&&>(t).myString_ref()...);
24 template <>
25 struct ForEachField<::cpp2::MyUnion> {
26 template <typename F, typename... T>
27 void operator()(FOLLY_MAYBE_UNUSED F&& f, FOLLY_MAYBE_UNUSED T&&... t) const {
28 f(0, static_cast<T&&>(t).myString_ref()...);
32 template <>
33 struct ForEachField<::cpp2::MyException> {
34 template <typename F, typename... T>
35 void operator()(FOLLY_MAYBE_UNUSED F&& f, FOLLY_MAYBE_UNUSED T&&... t) const {
36 f(0, static_cast<T&&>(t).myString_ref()...);
39 } // namespace detail
40 } // namespace thrift
41 } // namespace apache