From d81adf4a8e8dcdb793a9bc415259f1247dce109f Mon Sep 17 00:00:00 2001 From: hsutter Date: Wed, 2 Dec 2015 12:30:18 -0800 Subject: [PATCH] Added guidance to make function objects cheap to copy and pass by value --- CppCoreGuidelines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 372bc13..df0d85c 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -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: