Skip to content

Commit

Permalink
修改 stl 算法
Browse files Browse the repository at this point in the history
  • Loading branch information
huihut committed Jun 21, 2018
1 parent f99dbc2 commit d279ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STL/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,5 +286,5 @@ minmax_element(beg, end, comp); // 返回一个 pair,其中 first 成员为最

// 字典序比较,根据第一对不相等的元素的相对大小来返回结果。如果第一个序列在字典序中小于第二个序列,则返回 true。否则,返回 fa1se。如果个序列比另一个短,且所有元素都与较长序列的对应元素相等,则较短序列在字典序中更小。如果序列长度相等,且对应元素都相等,则在字典序中任何一个都不大于另外一个。
lexicographical_compare(beg1, end1, beg2, end2);
lexicographical_compare(beg1, end1, beg2, end2, comp)
lexicographical_compare(beg1, end1, beg2, end2, comp);
```

0 comments on commit d279ed1

Please sign in to comment.