================
@@ -192,9 +204,11 @@ class ASTVector {
       this->grow(C, this->size()+NumInputs);
 
     // Copy the new elements over.
-    // TODO: NEED To compile time dispatch on whether in_iter is a random 
access
-    // iterator to use the fast uninitialized_copy.
----------------
zwuis wrote:

Is the comment correct? Can you confirm that `std::distance` and 
`std::uninitialized_copy` do NOT perform compile time dispatch? How is 
`std::uninitialized_copy_n` faster here?

https://github.com/llvm/llvm-project/pull/162000
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to