Sorting records using sort()

M

Mike Bland

Martijn Lievaart said:
Remember that std::sort stores additional copies, so you'll have to create
proxy objects. Someone posted an implementation, but I cannot find it
right now (this thread has jumped over multiple groups, so it might be in
acllc-c++ or clc++m).

D'oh! Right, I momentarily forgot that the iterator I developed is
templated by an adapter function *and* a proxy object; the adapter
converts the raw data to the proxy type upon dereferencing. And, now
that you mention it, I'd imagine I'd have to make the proxy
assignable, not the iterator implementation.

Mike
 

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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top