Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include "thrift/annotation/thrift.thrift"
@thrift.AllowLegacyMissingUris
package;

cpp_include "folly/small_vector.h"
cpp_include "ranking/if/ranking_containers.h"
cpp_include "folly/container/F14Map.h"

struct Payload {
Expand Down Expand Up @@ -78,7 +78,7 @@ struct Action {
4: i64 actorID;
}

@cpp.Type{name = "folly::small_vector<int64_t, 8>"}
@cpp.Type{template = "::ranking::SmallVector8"}
typedef list<i64> SmallListI64
@cpp.Type{template = "folly::F14FastMap"}
typedef map<i16, i64> RankingPayloadIntMap
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.

#pragma once

#include <folly/small_vector.h>

namespace ranking {

template <typename T>
using SmallVector8 = folly::small_vector<T, 8>;

} // namespace ranking
Loading