Conversation
Contributor
Author
|
鬼知道这代码咋就过于复杂了,简化不能。。。 |
zhuyutian57
requested changes
Jun 13, 2018
|
|
||
| namespace custl { | ||
|
|
||
| template <typename _Key, typename _Compare = std::less<_Key>, |
| typedef typename _Rep_type::const_iterator const_iterator; | ||
| typedef typename _Rep_type::size_type size_type; | ||
| typedef typename _Rep_type::difference_type difference_type; | ||
| typedef typename _Rep_type::allocator_type allocator_type; |
Contributor
Author
There was a problem hiding this comment.
事实上这里的缩进本来是一个TAB,但按照 Google Code Style 就变成空格了。。
| swap(_M_key_compare, __t._M_key_compare); | ||
| std::swap(_M_header, __t._M_header); | ||
| std::swap(_M_node_count, __t._M_node_count); | ||
| std::swap(_M_key_compare, __t._M_key_compare); |
Contributor
Author
There was a problem hiding this comment.
std废话啊。。。又没人写 stl_utility 。
zhuyutian57
approved these changes
Jul 4, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete basic functions
based on local Rb_tree branch, I will submit a pr later.
complete and tested function list: