Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Case: (b)
- if((container_.size() & 1) != 0)
- second_child--;
- else
- // Case: (c)
- if(second_child == container_.size() - 1)
- if(comparator_(*(container_.begin() + second_child), *(container_.begin() + second_child - 1)))
- second_child--;
- // Case: (a)
- else
- {
- assert(second_child > container_.size() - 1);
- second_child--;
- }
Add Comment
Please, Sign In to add comment