Last active
June 23, 2022 20:15
-
-
Save Akira-Hayasaka/4949752 to your computer and use it in GitHub Desktop.
c++ copy vector into deque
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
std::copy(vector.begin(), vector.end(), std::inserter(deque, deque.end())); |
You can also use deque constractor.
deque<int> dt(cardPoints.begin(), cardPoints.end());
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice. Perhaps add #include .