mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Deprecate and inline absl::index_sequence
PiperOrigin-RevId: 910095727 Change-Id: I9f175172108186e03559409be2eb1a0600b6a225
This commit is contained in:
committed by
Copybara-Service
parent
deaf349205
commit
ef23debede
@@ -41,6 +41,7 @@ cc_library(
|
||||
linkopts = ABSL_DEFAULT_LINKOPTS,
|
||||
deps = [
|
||||
"//absl/base:config",
|
||||
"//absl/base:core_headers",
|
||||
"//absl/meta:type_traits",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -23,6 +23,7 @@ absl_cc_library(
|
||||
${ABSL_DEFAULT_COPTS}
|
||||
DEPS
|
||||
absl::config
|
||||
absl::core_headers
|
||||
absl::type_traits
|
||||
PUBLIC
|
||||
)
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "absl/base/config.h"
|
||||
#include "absl/base/macros.h"
|
||||
|
||||
// TODO(b/290784225): Include what you use cleanup required.
|
||||
#include "absl/meta/type_traits.h"
|
||||
@@ -43,7 +44,11 @@ using std::in_place_type;
|
||||
using std::in_place_type_t;
|
||||
using std::index_sequence;
|
||||
using std::index_sequence_for;
|
||||
using std::integer_sequence;
|
||||
|
||||
template <class T, T... I>
|
||||
using integer_sequence ABSL_DEPRECATE_AND_INLINE() =
|
||||
std::integer_sequence<T, I...>;
|
||||
|
||||
using std::make_from_tuple;
|
||||
using std::make_index_sequence;
|
||||
using std::make_integer_sequence;
|
||||
|
||||
Reference in New Issue
Block a user