From 3cfdae01b126bba0c15213a23a310097974ef564 Mon Sep 17 00:00:00 2001 From: Denis Yaroshevskiy Date: Wed, 31 Jul 2024 04:25:04 -0700 Subject: [PATCH] move folly::is_instantiation_of_v out of detail Summary: since we want a publicly facing concept, remove detail Reviewed By: jagill, yfeldblum Differential Revision: D60284223 fbshipit-source-id: 38c3fc12991d42891342f9cdb89814fd4d1f2420 --- folly/Function.h | 2 +- folly/Replaceable.h | 2 +- folly/Traits.h | 4 ---- folly/container/Array.h | 2 +- folly/container/sorted_vector_types.h | 4 ++-- folly/coro/Traits.h | 7 +++---- folly/fibers/async/Async.h | 2 +- folly/test/TraitsTest.cpp | 8 ++++---- 8 files changed, 13 insertions(+), 18 deletions(-) diff --git a/folly/Function.h b/folly/Function.h index 6fc733a096a..8bcefff1f46 100644 --- a/folly/Function.h +++ b/folly/Function.h @@ -612,7 +612,7 @@ using DispatchOf = Dispatch< // `Function` there refers to the instantion and not the template. template constexpr bool is_instantiation_of_folly_function_v = - detail::is_instantiation_of_v; + is_instantiation_of_v; } // namespace function } // namespace detail diff --git a/folly/Replaceable.h b/folly/Replaceable.h index 233ea1e4026..5ce2910fe1a 100644 --- a/folly/Replaceable.h +++ b/folly/Replaceable.h @@ -373,7 +373,7 @@ struct is_convertible_from_replaceable } // namespace replaceable_detail template -using is_replaceable = detail::is_instantiation_of; +using is_replaceable = is_instantiation_of; // Function to make a Replaceable with a type deduced from its input template diff --git a/folly/Traits.h b/folly/Traits.h index 3b467411f23..3c6b86e1301 100644 --- a/folly/Traits.h +++ b/folly/Traits.h @@ -157,8 +157,6 @@ inline constexpr bool is_bounded_array_v = true; template struct is_bounded_array : std::bool_constant> {}; -namespace detail { - /// is_instantiation_of_v /// is_instantiation_of /// @@ -176,8 +174,6 @@ template