File: README-mutable-container-key.md

package info (click to toggle)
clazy 1.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 5,248 kB
  • sloc: cpp: 23,552; python: 1,450; xml: 450; sh: 237; makefile: 46
file content (5 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (6)
1
2
3
4
5
# mutable-container-key

Looks for `QMap` or `QHash` having key types which can be modified due to external factors.
The key's value should never change, as it's needed for sorting or hashing, but with some types, such as non-owning smart pointers it might happen.
The supported key types are: `QPointer`, `QWeakPointer`, `weak_ptr` and `QPersistentModelIndex`.