forked from abseil/abseil-cpp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR abseil#1618: inlined_vector: Use trivial relocation for `SwapInlin…
…edElements` Imported from GitHub PR abseil#1618 I noticed while working on abseil#1615 that `inlined_vector` could use the trivial relocatability trait here, too. Here the memcpy codepath already exists; we just have to opt in to using it. Merge 567a1dd into a7012a5 Merging this change closes abseil#1618 COPYBARA_INTEGRATE_REVIEW=abseil#1618 from Quuxplusone:trivial-swap 567a1dd PiperOrigin-RevId: 609019296 Change-Id: I4055ab790245752179e405b490fcd479e7389726
- Loading branch information
1 parent
a40f45f
commit 7b0d408
Showing
2 changed files
with
47 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters