-
Notifications
You must be signed in to change notification settings - Fork 3
Jhx set #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
鬼知道这代码咋就过于复杂了,简化不能。。。 |
zhuyutian57
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一堆std是怎么回事?懒?
|
|
||
| namespace custl { | ||
|
|
||
| template <typename _Key, typename _Compare = std::less<_Key>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std是什么鬼
Source/header/set.h
Outdated
| 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
缩进跟需要跟其他文件一样
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
事实上这里的缩进本来是一个TAB,但按照 Google Code Style 就变成空格了。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@F-TD5X 这个wiki已经说过了,仔细读下
| 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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std废话啊。。。又没人写 stl_utility 。
Complete basic functions
based on local Rb_tree branch, I will submit a pr later.
complete and tested function list: