示例#1
0
    void test_clear()
    {
        size_t num = 10, count = 0;
        queue_type::iterator it;

        fill(num);
        m_queue.clear();
        for (it = m_queue.begin(); it != m_queue.end(); it++)
            count++;
        clear();

        ASSERT_EQ(0, count);
    }
示例#2
0
文件: queue.hpp 项目: maoy/mosaic
 void flush_()
 { queue_.clear(); }
示例#3
0
 void clear()
 {
     m_queue.clear();
 }