| Wiki Markup |
|---|
STL containers that take predicate functors are perfectly free to make multiple copies of the predicate, and often do, because typically predicates are passed by value. (\[[Meyers 01|AA. References#MeyersBibliography#Meyers 01]\] Item 38) If a predicate stores and uses internal state, then its state values at the end of a predicate-based function call are implementation-defined, and usually unexpected. |
...
| Wiki Markup |
|---|
\[[Meyers 01|AA. References#MeyersBibliography#Meyers 01]\] Item 39: Make predicates pure functions |