Container access in std.container

Ishan Thilina ishanthilina at gmail.com
Mon Mar 28 07:17:54 PDT 2011


I know that D has some Containers implemented by default( such as a a List,
Red-black tree, Array). In C++ these data structures can be used as follows.

#include <vector>

int main(){

	std::vector<int> myVector;
	std::vector<int>::iterator myIterator;

}

Then I can use "myIterator" to manipulate "myVector".

But in D the containers are embedded in the std.container( as far as I
understood it) and I can't do "import std.container" too. So how can I access
the built in containers?

Thank you..!


More information about the Digitalmars-d-learn mailing list