lexicographical_compare

Compares element by element between two sequences to determine which is lesser of the two.(以字典排列方式进行比较)

template<class InputIterator1, class InputIterator2>
   bool lexicographical_compare(
      InputIterator1 _First1,
      InputIterator1 _Last1,
      InputIterator2 _First2,
      InputIterator2 _Last2
   );
template<class InputIterator1, class InputIterator2, class BinaryPredicate>
   bool lexicographical_compare(
      InputIterator1 _First1,
      InputIterator1 _Last1, 
      InputIterator2 _First2, 
      InputIterator2 _Last2,
      BinaryPredicate _Comp
   );
Return Value

true if the first range is lexicographically less than the second range; otherwise false.

 

相关文章:

猜你喜欢
  • 2021-06-27
  • 2021-11-19
  • 2022-12-23
  • 2021-04-15
  • 2021-07-03
相关资源
相似解决方案