As I've been reading various threads on this forum, it seems to me that a lot of people are advocates of vector data structures.

Coming from C, I don't tend to use them a lot...I was just wondering if anyone could tell me how vectors are implemented (at the machine/memory level). I haven't done any searches myself, so links are fine as well.

Thanks :)

implementation is compiler dependent. If you want to know the nitty-gritty details then just read the <vector> header file, if you are brave enough. And write a small test program then let your compler produce the assembly language for it, that will give you the machine-level code you asked for. :)

From what I understand vector c++ template class is just a thin wrapper for standard C arrays.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.