/* * 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. */ #pragma once #include #include namespace apache { namespace thrift { template class field_ref; template class optional_field_ref; template class required_field_ref; template class optional_boxed_field_ref; template class union_field_ref; template class intern_boxed_field_ref; template class terse_intern_boxed_field_ref; template class terse_field_ref; namespace detail { template inline constexpr bool is_field_ref_v = false; template inline constexpr bool is_field_ref_v> = true; template inline constexpr bool is_optional_field_ref_v = false; template inline constexpr bool is_optional_field_ref_v> = true; template inline constexpr bool is_required_field_ref_v = false; template inline constexpr bool is_required_field_ref_v> = true; template inline constexpr bool is_optional_boxed_field_ref_v = false; template inline constexpr bool is_optional_boxed_field_ref_v> = true; template inline constexpr bool is_union_field_ref_v = false; template inline constexpr bool is_union_field_ref_v> = true; template inline constexpr bool is_intern_boxed_field_ref_v = false; template inline constexpr bool is_intern_boxed_field_ref_v> = true; template inline constexpr bool is_terse_intern_boxed_field_ref_v = false; template inline constexpr bool is_terse_intern_boxed_field_ref_v> = true; template inline constexpr bool is_terse_field_ref_v = false; template inline constexpr bool is_terse_field_ref_v> = true; template inline constexpr bool is_unique_ptr_v = false; template inline constexpr bool is_unique_ptr_v> = true; template inline constexpr bool is_shared_ptr_v = false; template inline constexpr bool is_shared_ptr_v> = true; template inline constexpr bool is_shared_or_unique_ptr_v = is_unique_ptr_v || is_shared_ptr_v; template inline constexpr bool is_optional_or_union_field_ref_v = is_optional_field_ref_v || is_optional_boxed_field_ref_v || is_union_field_ref_v; } // namespace detail } // namespace thrift } // namespace apache