mirror of
https://github.com/cpp-best-practices/cppbestpractices.git
synced 2025-12-17 03:04:36 +03:00
Enhance notes on algorithms.
This commit is contained in:
@@ -29,7 +29,13 @@ See http://mortoray.com/2015/06/15/get-rid-of-those-boolean-function-parameters/
|
|||||||
|
|
||||||
## Avoid Raw Loops
|
## Avoid Raw Loops
|
||||||
|
|
||||||
Know and understand the existing C++ standard algorithms and put them to use. See [C++ Seasoning](https://www.youtube.com/watch?v=qH6sSOr-yk8) for more details.
|
Know and understand the existing C++ standard algorithms and put them to use.
|
||||||
|
|
||||||
|
* See [cppreference](https://en.cppreference.com/w/cpp/algorithm)
|
||||||
|
* Watch [C++ Seasoning](https://www.youtube.com/watch?v=qH6sSOr-yk8)
|
||||||
|
|
||||||
|
Consider a call to `[]` as a potential code smell, indicating that an algorithm was not used where it could have been.
|
||||||
|
|
||||||
|
|
||||||
## Never Use `assert` With Side Effects
|
## Never Use `assert` With Side Effects
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user