diff options
author | Valery Mironov <32071355+MBkkt@users.noreply.github.com> | 2024-05-15 09:55:15 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-05-15 09:56:10 -0700 |
commit | cbfe51b2c01da330ff292b145de91346a5950163 (patch) | |
tree | b44cde72bf5ab82bda549202adaec082d4ab33ad /absl/strings/str_join.h | |
parent | 6683a6174003e51259b4f6ffb276941aa27709ce (diff) |
PR #1672: Optimize StrJoin with tuple without user defined formatter
Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1672
https://github.com/abseil/abseil-cpp/discussions/1671
Merge ddcbb2466b2c9c4048d60be7e58cf47f935c257d into eba8db7baf6c326870f28e58977075b7b2fb243d
Merging this change closes #1672
COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1672 from MBkkt:optimize-str-join ddcbb2466b2c9c4048d60be7e58cf47f935c257d
PiperOrigin-RevId: 633988391
Change-Id: I2b3904211a29de3a768fb90a7fc106d7ff6c03e7
Diffstat (limited to 'absl/strings/str_join.h')
-rw-r--r-- | absl/strings/str_join.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/absl/strings/str_join.h b/absl/strings/str_join.h index badc944a..8d7bc6ba 100644 --- a/absl/strings/str_join.h +++ b/absl/strings/str_join.h @@ -291,7 +291,8 @@ inline std::string StrJoin(std::initializer_list<absl::string_view> il, template <typename... T> std::string StrJoin(const std::tuple<T...>& value, absl::string_view separator) { - return strings_internal::JoinAlgorithm(value, separator, AlphaNumFormatter()); + return strings_internal::JoinTuple(value, separator, + std::index_sequence_for<T...>{}); } ABSL_NAMESPACE_END |