[PATCH] D89544: [CodingStandards] Clarify the recommendation to use SmallVector
Thorsten via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 16 08:08:03 PDT 2020
tschuett added a comment.
Maybe some examples?
Prefer llvm::SmallVector<T, 10> over std::vector<T> if you expect to store less than 10 elements.
Prefer std::vector<T> over llvm::SmallVector<T, 10> if expect to store way more than 10 elements.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89544/new/
https://reviews.llvm.org/D89544
More information about the llvm-commits
mailing list