| 123 | } |
| 124 | |
| 125 | std::auto_ptr<this_type> clone() const |
| 126 | { |
| 127 | std::auto_ptr<this_type> pa( new this_type ); |
| 128 | for( size_t i = 0; i != N; ++i ) |
| 129 | { |
| 130 | if( ! is_null(i) ) |
| 131 | pa->replace( i, this->null_policy_allocate_clone( &(*this)[i] ) ); |
| 132 | } |
| 133 | return pa; |
| 134 | } |
| 135 | |
| 136 | private: // hide some members |
| 137 | using base_class::insert; |