mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
Migrate invocation of deprecated absl::rotate() to std::rotate()
PiperOrigin-RevId: 926028342 Change-Id: I07e3623aac70f4b6004522df9fa78f2a321ae460
This commit is contained in:
committed by
Copybara-Service
parent
e3555a1274
commit
c0a2d65306
@@ -966,8 +966,8 @@ template <typename C,
|
||||
typename Iterator = container_algorithm_internal::ContainerIter<C>>
|
||||
ABSL_INTERNAL_CONSTEXPR_SINCE_CXX20 Iterator c_rotate(C& sequence,
|
||||
Iterator middle) {
|
||||
return absl::rotate(container_algorithm_internal::c_begin(sequence), middle,
|
||||
container_algorithm_internal::c_end(sequence));
|
||||
return std::rotate(container_algorithm_internal::c_begin(sequence), middle,
|
||||
container_algorithm_internal::c_end(sequence));
|
||||
}
|
||||
|
||||
// c_rotate_copy()
|
||||
|
||||
Reference in New Issue
Block a user