end
语法:
1 |
iterator end(); |
end()函数返回一个迭代器,指向双向队列的尾部。
1 2 3 4 5 6 7 8 9 |
源代码 /** * Returns a read/write iterator that points one past the last element in * the %deque. Iteration is done in ordinary element order. */ iterator end() { return this->_M_impl._M_finish; } |
测试代码:
测试结果:
5
请按任意键继续. . .