| High Integrity CPP Guideline 17.18 | Use STL algorithms rather than hand-written loops. |
| Justification |
Implementations may optimize algorithms for particular container types to improve efficiency. Code using algorithms is generally clearer, more straightforward, less error prone, and easier to maintain. |
| See also |
Rule 17.19 |
| Reference |
Effective STL Item 43; |