operators (std::queue)

operator==,!=,<,<=,>,>=(std::queue)

template< class T, class Container >
bool operator==( queue<T,Container>& lhs,
                 queue<T,Container>& rhs );
(1)
template< class T, class Container >
bool operator!=( queue<T,Container>& lhs,
                 queue<T,Container>& rhs );
(2)
template< class T, class Container >
bool operator<( queue<T,Container>& lhs,
                queue<T,Container>& rhs );
(3)
template< class T, class Container >
bool operator<=( queue<T,Container>& lhs,
                 queue<T,Container>& rhs );
(4)
template< class T, class Container >
bool operator>( queue<T,Container>& lhs,
                queue<T,Container>& rhs );
(5)
template< class T, class Container >
bool operator>=( queue<T,Container>& lhs,
                 queue<T,Container>& rhs );
(6)

Compares the contents of the underlying containers of two container adaptors. The comparison is done by applying the corresponding operator to the underlying containers.

Parameters

lhs, rhs - container adaptors whose contents to compare
-T must meet the requirements of EqualityComparable.

Return value

true if the corresponding comparison yields true, false otherwise.

Complexity

Linear in the size of the container.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/container/queue/operator_cmp

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部