search for: defaultinlinedelementsize

Displaying 2 results from an estimated 2 matches for "defaultinlinedelementsize".

2020 Nov 17
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...> VectorImpl (we could keep both around for a transition period) - (etc.) - SmallVector => Vector, but give `Vector` a default small size of 0 - Add SmallVector as a wrapper around Vector that has a nice default for the small size: ``` template <class T> using SmallVector = Vector<T, DefaultInlinedElementSize<T>>; ``` > - If people are concerned about the default being bad, then you could choose to make “SmallVector<T, -1>” be the thing that autosizes. I tend to agree with your viewpoint that the N chosen is arbitrary in almost all cases anyway though, so I wouldn’t go this way. &gt...
2020 Nov 17
3
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
On Tue, Nov 17, 2020 at 7:26 AM Chris Lattner <clattner at nondot.org> wrote: > On Nov 13, 2020, at 2:06 PM, Sean Silva via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > We've pretty happy now with a patch that adds two wrappers around > SmallVector that make it 1) more convenient to use and 2) will tend to > mitigate misuse of SmallVector. We think