Can you tell me what is the equivalent of this source in std::vector functions.
NOTE: The g_sysSearchPaths_All is an hidden paramter in the function std::vector<SYS_SEARCH_PATH,std::allocator<SYS_SEARCH_PATH>>::insert(SYS_SEARCH_PATH *,uint,SYS_SEARCH_PATH const &) passed by the EAX register.
g_sysSearchPaths_All is a vector, which is typically a class holding three pointers: the begin pointer, the end pointer, and the end of capacity pointer.
&g_sysSearchPaths_All is the address of the class and therefore the address of its first member (one of the pointers)
(unsignedlong*)&g_sysSearchPaths_All is that address reinterpret-cast to pointer to uintptr_t (which appears to be unsigned long on your platform).
((unsignedlong*)&g_sysSearchPaths_All) is the next element of the vector object, that is the second member pointer[/code]
Based on the loop structure (start with the second pointer, increment by the size of the element until the first pointer), it's easy to conclude that the first pointer is the end pointer, and the second pointer is the begin pointer.