operator==,!=,<,<=,>,>=(std::vector)
cppreference.com
[] |
Google. . , . , . |
<metanoindex/>
<tbody> </tbody> template< > bool operator==( vector<>& lhs, vector<>& rhs ); |
(1) | |
template< > bool operator!=( vector<>& lhs, vector<>& rhs ); |
(2) | |
template< > bool operator<( vector<>& lhs, vector<>& rhs ); |
(3) | |
template< > bool operator<=( vector<>& lhs, vector<>& rhs ); |
(4) | |
template< > bool operator>( vector<>& lhs, vector<>& rhs ); |
(5) | |
template< > bool operator>=( vector<>& lhs, vector<>& rhs ); |
(6) | |
.
1-2) ,
lhs.size() == rhs.size() lhs rhs .3-6)
lhs rhs . std::lexicographical_compare.:
Compares the contents of
lhs and rhs lexicographically. The comparison is performed by a function equivalent to std::lexicographical_compare.| lhs, rhs |
1)
2)
true , false 3)
true lhs , rhs, false :
true if the contents of the lhs are lexicographically less than the contents of rhs, false otherwise4)
true lhs rhs, false :
true if the contents of the lhs are lexicographically less than or equal the contents of rhs, false otherwise5)
true lhs , rhs, false :
true if the contents of the lhs are lexicographically greater than the contents of rhs, false otherwise6)
true lhs rhs, false :
true if the contents of the lhs are lexicographically greater than or equal the contents of rhs, false otherwise