Style change in deque copy

Co-authored-by: Russell Sears <sears@cs.berkeley.edu>
This commit is contained in:
Trevor Clinkenbeard 2020-06-12 14:58:34 -07:00 committed by GitHub
parent f6051202df
commit 9f0487506c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public:
// copy must be performed in two parts
auto partOneSize = r.capacity() - r.begin;
auto partTwo = std::copy(r.arr + r.begin, r.arr + r.capacity(), arr);
std::copy(r.arr, r.arr + (r.end & r.mask), arr + partOneSize);
std::copy(r.arr, r.arr + (r.end & r.mask), partTwo);
}
}