DEV Community

Discussion on: The big STL Algorithms tutorial: heap operations

Collapse
 
pgradot profile image
Pierre Gradot

Or at least, not how I'd expect.

At least, there are 2 people in this case... std::push_heap and std::pop_heap have a weird signature. Maybe the purpose was to have similar signatures. I don't really get the point here.

std::sort_heap is somehow the counterpart of std::make_heap but I also find it weird.

I guess I don't have the appropriate background to understand these functions' signatures and names ^^

Collapse
 
sandordargo profile image
Sandor Dargo

I guess I don't have the appropriate background to understand these functions' signatures and names ^^

I have no idea who has such a background :D

Collapse
 
pgradot profile image
Pierre Gradot

Let's find the authors of the proposal for these functions XD

Thread Thread
 
sandordargo profile image
Sandor Dargo

What do you want to do with them? :D

Thread Thread
 
pgradot profile image
Pierre Gradot

Ask them "but why ????"

Thread Thread
 
sandordargo profile image
Sandor Dargo

I was afraid of something more drastic :D

Thread Thread
 
pgradot profile image
Pierre Gradot

Don't worry I'm a nice guy 😇