logoalt Hacker News

RyanJK5today at 2:38 PM1 replyview on HN

Yes. duck takes ownership of the vector by moving it into its internal storage.

As a bonus, if you tried passing in an lvalue, it will reject the input unless you add the "copyable" trait, so it ends up mitigating some hidden copies.


Replies

schaefertoday at 3:01 PM

Well, you’ve certainly convinced me to read your library.

Thanks for the blog post.

show 1 reply