引用自《The C++ Standard Library Second Edition》:
Note, however, that an array<> can’t simply swap pointers internally. For this reason, swap() has linear complexity and the effect that iterators and references don’t swap containers with their elements. So, iterators and references refer to the same container but different elements afterward.
但array<>内部为什么不能交换指针呢,不明白。
占个坑,知道后再补上原因
-------------------------------------------------分隔线-------------------------------------------------
原因:
引用自http://en.cppreference.com/w/cpp/container/array
This container is an aggregate type with the same semantics as a struct holding a C-style array T[N] as its only non-static data member.