Jiang Tao
Results
2
comments of
Jiang Tao
可不可以这样改? Request::Execute 中传入的 Handler,在被调用之后,将 成员变量 handler_ 设置成空值?
assert(TestItem::getCount() == 0); 不满足了 ``` cpp for (; tempPtr - position >= 0; --tempPtr){//move the [position, finish_) back construct(tempPtr + locationNeed, *tempPtr); } ... ``` 这段代码应该是后移插入点之后的元素,但是应该分成两种情况来对待 1. 一部分元素被移动到了finish_之后的内存上,需要调用construct 2. 还有一部分元素可能被移动的先前的位置上,只需要调用operator...