SimpleEventBuilder/testing/queue_testing/range_insertion.cxx

20 lines
310 B
C++
Raw Permalink Normal View History

#include <ostream>
#include <queue>
#include <array>
#include <iostream>
int main() {
std::queue<int> queue;
std::array<int, 4> range = {1,2,3,4};
queue.push_range(range);
while (!queue.empty()) {
std::cout << queue.front() << std::endl;
queue.pop();
}
return 0;
}