[英]Is std::array iterator typedef implementation defined
Is the iterator type requirement for std::array<T,N>::iterator implementation defined or is it always defined to be a pointer to value_type? std::array<T,N>::iterator 实现的迭代器类型要求是已定义还是始终定义为指向 value_type 的指针?
It's implementation-defined.它是实现定义的。
See the C++20 Standard (working draft, the final version costs money), section 22.3.7, "Class template array
":请参阅C++20 标准(工作草案,最终版本要花钱),第 22.3.7 节,“类模板
array
”:
namespace std {
template<class T, size_t N>
struct array {
// types
...
using iterator = implementation-defined ; // see 22.2
using const_iterator = implementation-defined ; // see 22.2
...
};
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.