-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow moving container out of SortedVector and HeapVector
Summary: PROBLEM There is a way to create a `SortedVector` or `HeapVector` type in folly by passing it a container. But there is no easy way to get that container back out. While `SortedVector::get_container_for_direct_mutation` could work, it involves a bunch more steps to execute. SOLUTION Create a new `swap_container` method for the 2 containers. Reviewed By: yfeldblum Differential Revision: D69144172 fbshipit-source-id: 100c17b58e7b651dbcda723c0da75f186390d129
- Loading branch information
1 parent
5560132
commit 431af35
Showing
4 changed files
with
101 additions
and
0 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
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