| 1 Меньшиков Фёдор Владимирович, 26 августа 2017 г. 16:52:15 | |
Например такое: auto less = [] (const std::stack<int> &left, const std::stack<int> &right) { return left.top() < right.top(); }; std::priority_queue<std::stack<int>, std::vector<std::stack<int>>, decltype(less)> q(less);
|
|
|