the new operator

Started by
9 comments, last by jcabeleira 20 years, 6 months ago
quote:Original post by Anonymous Poster
Indexing into the vector is slightly more expensive than indexing into an array, though, as the internal mechanism for indexing into the vector involves pointer arithmetic.


Indexing an array involves *exactly* the same pointer arithmetic as indexing a vector.

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

This topic is closed to new replies.

Advertisement