We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allocator中destroy()函数没有对数据类型做萃取,全都调用了析构函数进行了析构,是不是需要结合Construct.h中destroy()函数对数据类型进行萃取之后再destroy().
还有一个问题就是Construct.h中destroy()函数直接 template <class ForwardIt> inline void destroy(ForwardIt first,ForwardIt last){ typedef typename _type_traits<ForwardIt>::is_POD_type is_POD_type; _destroy(first,last,is_POD_type()); }这样写是不是有点问题,是不是需要先萃取ForwardIt的value_type再_type_traits<>
template <class ForwardIt> inline void destroy(ForwardIt first,ForwardIt last){ typedef typename _type_traits<ForwardIt>::is_POD_type is_POD_type; _destroy(first,last,is_POD_type()); }
一点小小的疑问
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Allocator中destroy()函数没有对数据类型做萃取,全都调用了析构函数进行了析构,是不是需要结合Construct.h中destroy()函数对数据类型进行萃取之后再destroy().
还有一个问题就是Construct.h中destroy()函数直接
template <class ForwardIt> inline void destroy(ForwardIt first,ForwardIt last){ typedef typename _type_traits<ForwardIt>::is_POD_type is_POD_type; _destroy(first,last,is_POD_type()); }
这样写是不是有点问题,是不是需要先萃取ForwardIt的value_type再_type_traits<>一点小小的疑问
The text was updated successfully, but these errors were encountered: