[llvm-dev] RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.

Robinson, Paul via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 1 12:30:42 PST 2020


>> 2 and 3 should be optimizations possible in the STL. I disagree that
>> SmallVectorImpl is pervasively used. 
>
> Any method that accepts a container and will do something like "push_back"
> on it has to either take SmallVectorImpl or be templated to accept std::vector
> and SmallVector.

FTR, grepping llvm/include for SmallVectorImpl and filtering out ADT (because
that's going to be full of the implementation details) got 632 hits.

It's at least "widely used" if not "pervasively used."
--paulr



More information about the llvm-dev mailing list