mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
F.52: Improve language just a bit (#1770)
This commit is contained in:
parent
077a29ee3c
commit
402565d74e
|
@ -3895,7 +3895,7 @@ Unfortunately, there is no simple way to capture by reference to `const` to get
|
|||
|
||||
##### Example
|
||||
|
||||
Here, a large object (a network message) is passed to an iterative algorithm, and is it not efficient or correct to copy the message (which might not be copyable):
|
||||
Here, a large object (a network message) is passed to an iterative algorithm, and it is not efficient or correct to copy the message (which might not be copyable):
|
||||
|
||||
std::for_each(begin(sockets), end(sockets), [&message](auto& socket)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user