add insert() method for dynamic::array
Summary: We have insert() API for underlying object, but not the array. With array, insert() has same semantic as in std::vector, shifting elements to the right. To insert at arbitrary offset use something like `arr.insert(arr.begin() + 10, elem)`; This calls one of specializations of std::vector's insert() underneath. Reviewed By: yfeldblum Differential Revision: D10372068 fbshipit-source-id: 54bb7ea80b36bf1b893d88b82a11afa08ad0c0e2
Showing
Please register or sign in to comment