/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ cpp_include "folly/sorted_vector_types.h" struct StructA { 1: bool fieldA; 2: i32 fieldB; 3: string fieldC; 4: list fieldD; 5: set fieldE; 6: map fieldF; 7: list>> fieldG; 8: set>> fieldH; 9: map, map> fieldI; 10: map>, set>> fieldJ; } typedef map (cpp.template = "folly::sorted_vector_map") folly_map typedef set (cpp.template = "folly::sorted_vector_set") folly_set typedef set (cpp.template = "folly::sorted_vector_set") folly_set_set typedef map ( cpp.template = "folly::sorted_vector_map", ) folly_map_map typedef set> ( cpp.template = "folly::sorted_vector_set", ) folly_list_set typedef map, folly_list_set> ( cpp.template = "folly::sorted_vector_map", ) folly_list_set_map struct StructB { 1: bool fieldA; 2: i32 fieldB; 3: string fieldC; 4: list fieldD; 5: folly_set fieldE; 6: folly_map fieldF; 7: list>> fieldG; 8: set (cpp.template = "folly::sorted_vector_set") fieldH; 9: folly_map_map fieldI; 10: folly_list_set_map fieldJ; }