Inlined some vector/deque functions