If I want to create an associative array in C++ without the use of std::map, what are the possibilities? I want to set it up as a template so that it can be used with various datatypes.

Example:

Array<int> // (associative array),

and then be able to insert elements into the list (associative array) or find elements from the list.

Thanks
KT

Recommended Answers

All 2 Replies

Try creating your own

commented: Such an elegant and obvious answer :) +36
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.