MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / clone

Method clone

include/win/boost/ptr_container/ptr_array.hpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;

Callers 9

new_cloneFunction · 0.45
new_cloneFunction · 0.45
new_cloneFunction · 0.45
new_cloneFunction · 0.45
new_cloneFunction · 0.45
new_cloneMethod · 0.45
new_cloneMethod · 0.45
new_cloneFunction · 0.45
new_cloneFunction · 0.45

Calls 3

is_nullFunction · 0.70
replaceMethod · 0.45

Tested by

no test coverage detected