mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Added guidance to make function objects cheap to copy and pass by value
This commit is contained in:
parent
ec3efd326f
commit
d81adf4a8e
|
@ -5195,6 +5195,7 @@ Summary of container rules:
|
|||
|
||||
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.
|
||||
Function objects should be cheap to copy (and therefore [passed by value](#Rf-in)).
|
||||
|
||||
Summary:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user