0

Is there a priority_queue adaptor that works with boost pointer containers?

amit kumar
  • 20,438
  • 23
  • 90
  • 126

1 Answers1

1

A priority queue is not really a new container. You should be able to "create" it based on a ptr_vector using a typedef:

typedef priority_queue<myclass, ptr_vector<myclass> > ptr_priority_queue;
hannes
  • 966
  • 9
  • 13