Guest User

Untitled

a guest
May 27th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. // Case: (b)
  2.         if((container_.size() & 1) != 0)
  3.             second_child--;
  4.         else
  5.             // Case: (c)
  6.             if(second_child == container_.size() - 1)
  7.                 if(comparator_(*(container_.begin() + second_child), *(container_.begin() + second_child - 1)))
  8.                     second_child--;
  9.             // Case: (a)
  10.             else
  11.             {
  12.                 assert(second_child > container_.size() - 1);
  13.                 second_child--;
  14.             }
Add Comment
Please, Sign In to add comment