lemon/concepts/heap.h
branch1.1
changeset 813 44670dddcfcb
parent 783 b873350e6258
equal deleted inserted replaced
11:1ffb06b34d78 12:d2953c62a60e
   196 
   196 
   197           Item item;
   197           Item item;
   198           Prio prio;
   198           Prio prio;
   199           item=Item();
   199           item=Item();
   200           prio=Prio();
   200           prio=Prio();
   201           ignore_unused_variable_warning(item);
   201           ::lemon::ignore_unused_variable_warning(item);
   202           ignore_unused_variable_warning(prio);
   202           ::lemon::ignore_unused_variable_warning(prio);
   203 
   203 
   204           OwnItem own_item;
   204           OwnItem own_item;
   205           OwnPrio own_prio;
   205           OwnPrio own_prio;
   206           OwnState own_state;
   206           OwnState own_state;
   207           own_item=Item();
   207           own_item=Item();
   208           own_prio=Prio();
   208           own_prio=Prio();
   209           ignore_unused_variable_warning(own_item);
   209           ::lemon::ignore_unused_variable_warning(own_item);
   210           ignore_unused_variable_warning(own_prio);
   210           ::lemon::ignore_unused_variable_warning(own_prio);
   211           ignore_unused_variable_warning(own_state);
   211           ::lemon::ignore_unused_variable_warning(own_state);
   212 
   212 
   213           _Heap heap1(map);
   213           _Heap heap1(map);
   214           _Heap heap2 = heap1;
   214           _Heap heap2 = heap1;
   215           ignore_unused_variable_warning(heap1);
   215           ::lemon::ignore_unused_variable_warning(heap1);
   216           ignore_unused_variable_warning(heap2);
   216           ::lemon::ignore_unused_variable_warning(heap2);
   217 
   217 
   218           int s = heap.size();
   218           int s = heap.size();
   219           ignore_unused_variable_warning(s);
   219           ::lemon::ignore_unused_variable_warning(s);
   220           bool e = heap.empty();
   220           bool e = heap.empty();
   221           ignore_unused_variable_warning(e);
   221           ::lemon::ignore_unused_variable_warning(e);
   222 
   222 
   223           prio = heap.prio();
   223           prio = heap.prio();
   224           item = heap.top();
   224           item = heap.top();
   225           prio = heap[item];
   225           prio = heap[item];
   226           own_prio = heap.prio();
   226           own_prio = heap.prio();