Consider following example:
priority_queue<int[3], vector<int[3]>, greater<int[3]>> pq;
pq.push({{2,3,4}}));
int * x=pq.top();
It says that no matching function found for push().
Of course, we can use a tuple to do the same thing. But I'm just curious can we use array directly.
int[3]
in c++? – Plicastd::array
. – Alpenglow