Added guidance to make function objects cheap to copy and pass by value

This commit is contained in:
hsutter 2015-12-02 12:30:18 -08:00
parent ec3efd326f
commit d81adf4a8e

View File

@ -5195,6 +5195,7 @@ Summary of container rules:
A function object is an object supplying an overloaded `()` so that you can call it. A function object is an object supplying an overloaded `()` so that you can call it.
A lambda expression (colloquially often shortened to "a lambda") is a notation for generating a function object. A lambda expression (colloquially often shortened to "a lambda") is a notation for generating a function object.
Function objects should be cheap to copy (and therefore [passed by value](#Rf-in)).
Summary: Summary: