Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / lib / cpp2 / type / detail / TypeRegistry.h
blobf8a0f2cc26c00996ca603775e95d87a101626d3e
1 /*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #pragma once
19 #include <folly/CPortability.h>
21 namespace apache {
22 namespace thrift {
23 namespace type {
24 class TypeRegistry;
25 namespace detail {
27 // NOTE: Non-const access is not thread-safe. All non-const access should
28 // happen at static initalization time.
29 FOLLY_EXPORT TypeRegistry& getGeneratedTypeRegistry();
31 } // namespace detail
32 } // namespace type
33 } // namespace thrift
34 } // namespace apache