Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jzwinck
· 11y ago · 0 comments
Tuples are useful for writing fairly low level features such as marshalling between threads. std::bind is another way, if you need to marshal arguments with a function...but if you don't have a function to call, it's just a tuple.
Comments
[–]
eloff
11y ago
Lambda captures are great for that too, especially since C++14, where you can use move semantics with the captures (e.g. marshal std::unique_ptr)