lemon/concepts/heap.h
changeset 983 8b2d4e5d96e4
parent 954 be7dd3a8d6a3
parent 982 3e711ee55d31
equal deleted inserted replaced
16:50790b4ed173 18:09a5aac8bb55
   258 
   258 
   259           Item item;
   259           Item item;
   260           Prio prio;
   260           Prio prio;
   261           item=Item();
   261           item=Item();
   262           prio=Prio();
   262           prio=Prio();
   263           ignore_unused_variable_warning(item);
   263           ::lemon::ignore_unused_variable_warning(item);
   264           ignore_unused_variable_warning(prio);
   264           ::lemon::ignore_unused_variable_warning(prio);
   265 
   265 
   266           OwnItem own_item;
   266           OwnItem own_item;
   267           OwnPrio own_prio;
   267           OwnPrio own_prio;
   268           OwnState own_state;
   268           OwnState own_state;
   269           own_item=Item();
   269           own_item=Item();
   270           own_prio=Prio();
   270           own_prio=Prio();
   271           ignore_unused_variable_warning(own_item);
   271           ::lemon::ignore_unused_variable_warning(own_item);
   272           ignore_unused_variable_warning(own_prio);
   272           ::lemon::ignore_unused_variable_warning(own_prio);
   273           ignore_unused_variable_warning(own_state);
   273           ::lemon::ignore_unused_variable_warning(own_state);
   274 
   274 
   275           _Heap heap1(map);
   275           _Heap heap1(map);
   276           _Heap heap2 = heap1;
   276           _Heap heap2 = heap1;
   277           ignore_unused_variable_warning(heap1);
   277           ::lemon::ignore_unused_variable_warning(heap1);
   278           ignore_unused_variable_warning(heap2);
   278           ::lemon::ignore_unused_variable_warning(heap2);
   279 
   279 
   280           int s = heap.size();
   280           int s = heap.size();
   281           ignore_unused_variable_warning(s);
   281           ::lemon::ignore_unused_variable_warning(s);
   282           bool e = heap.empty();
   282           bool e = heap.empty();
   283           ignore_unused_variable_warning(e);
   283           ::lemon::ignore_unused_variable_warning(e);
   284 
   284 
   285           prio = heap.prio();
   285           prio = heap.prio();
   286           item = heap.top();
   286           item = heap.top();
   287           prio = heap[item];
   287           prio = heap[item];
   288           own_prio = heap.prio();
   288           own_prio = heap.prio();