mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Added guidance to make function objects cheap to copy and pass by value
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user