Displaying 2 results from an estimated 2 matches for "bombela".
Did you mean:
boebel
2010 Jul 04
0
[LLVMdev] Question about SmallVector implementation detail
On Jul 4, 2010, at 12:04 AM, bombela wrote:
> Hello,
>
> I have just a little question about the SmallVector implemention.
>
> In SmallVectorImpl, the following method is currently implemented as:
>
> void push_back(const T &Elt) {
> if (this->EndX < this->CapacityX) {
> Retry:
>...
2010 Jul 04
2
[LLVMdev] Question about SmallVector implementation detail
Hello,
I have just a little question about the SmallVector implemention.
In SmallVectorImpl, the following method is currently implemented as:
void push_back(const T &Elt) {
if (this->EndX < this->CapacityX) {
Retry:
new (this->end()) T(Elt);
this->setEnd(this->end()+1);
return;
}
this->grow();
goto Retry;
}