On Wednesday 15 April 2015 21:05:39 Keith Gardner wrote:
> Would something like this be better?
> 
> std::function

No, a std::function in general allocates memory and even if it uses the small 
object optimisation, the call to the lambda will still be indirect.

Thanks,
Marc

-- 
Marc Mutz <[email protected]> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to