Did multimap ever have a member "Cursor"?

H

Hans Merkl

Hi,

I have a very old piece of code which supposedly comes from OS/2. It looks
like this:

class indexTable:std::multimap<Type1,Type2>
{

};

Later there is a piece of code like this:

indexTable t;
indexTable::Cursor c;

Now the compiler complains it can't find Cursor.

indexTable doesn't define any members so I assume Cursor must come from
multimap. The multimap documentation I have doesn't mention Cursor, but
since the code is very old, it might be that some older implementations
defined it.

Does anybody know more about this?

Thanks

Hans Merkl
 
V

Victor Bazarov

Hans Merkl said:
I have a very old piece of code which supposedly comes from OS/2. It looks
like this:

class indexTable:std::multimap<Type1,Type2>
{

};

Later there is a piece of code like this:

indexTable t;
indexTable::Cursor c;

Now the compiler complains it can't find Cursor.

indexTable doesn't define any members so I assume Cursor must come from
multimap. The multimap documentation I have doesn't mention Cursor, but
since the code is very old, it might be that some older implementations
defined it.

Does anybody know more about this?

I don't know about what used to be, but AFAIR, the library _never_
contained classes named starting with a capital letter.

Victor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top