How to Transfer unique_ptrs From a Set to Another Set
▻https://www.fluentcpp.com/2018/11/06/how-to-transfer-unique_ptrs-from-a-set-to-another
Transferring a std::unique_ptr to another std::unique_ptr is an easy thing to do: [crayon-5be0f38f74bb5311868569/] Easy peasy, lemon squeezy. Now what if those unique_ptrs are living inside of two sets? It should be just as easy to transfer those in the first set over to the second set, right? It turns out that it’s not easy, neither peasy, and […]