std::{{{1}}}::push
من cppreference.com
void push( const T& value ); |
قالب:mark since none | |
void push( T&& value ); |
(since C++11) | |
Pushes the given element value
to the priority queue.
1) Effectively calls c.push_back(value); std::push_heap(c.begin(), c.end(), comp);
2) Effectively calls c.push_back(std::move(value)); std::push_heap(c.begin(), c.end(), comp);
محتويات |
[تعديل] Parameters
value | - | the value of the element to push |
[تعديل] Return value
(none)