CertC++-CTRΒΆ

Containers

Nested Rules

CertC++-CTR50

Guarantee that container indices and iterators are within the valid range

CertC++-CTR51

Use valid references, pointers, and iterators to reference elements of a container

CertC++-CTR52

Guarantee that library functions do not overflow

CertC++-CTR53

Use valid iterator ranges

CertC++-CTR54

Do not subtract iterators that do not refer to the same container

CertC++-CTR55

Do not use an additive operator on an iterator if the result would overflow

CertC++-CTR56

Do not use pointer arithmetic on polymorphic objects

CertC++-CTR57

Provide a valid ordering predicate

CertC++-CTR58

Predicate function objects should not be mutable

Options