Hacker News new | ask | show | jobs
by kllrnohj 1651 days ago
That's dependent on the captured type's copy (or move) behavior, and is completely different from your claim that how the lambda is used can influence this. Lambdas themselves never heap allocate.