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

Method replace

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

Source from the content-addressed store, hash-verified

147
148 template< size_t idx >
149 auto_type replace( U* r ) // strong
150 {
151 BOOST_STATIC_ASSERT( idx < N );
152
153 this->enforce_null_policy( r, "Null pointer in 'ptr_array::replace()'" );
154
155 auto_type res( static_cast<U*>( this->base()[idx] ) ); // nothrow
156 this->base()[idx] = r; // nothrow
157 return boost::ptr_container::move(res); // nothrow
158 }
159
160 template< size_t idx, class V >
161 auto_type replace( std::auto_ptr<V> r )

Callers 15

to_pretty_trxMethod · 0.45
ReplaceCharFunction · 0.45
replace_allFunction · 0.45
string.hppFile · 0.45
operator()Method · 0.45
operator()Method · 0.45
operator()Method · 0.45
generate_cppFunction · 0.45
generate_cppFunction · 0.45
generate_re2cFunction · 0.45
cloneMethod · 0.45

Calls 5

enforce_null_policyMethod · 0.80
moveFunction · 0.50
replaceFunction · 0.50
baseMethod · 0.45
releaseMethod · 0.45

Tested by 1

ReplaceCharFunction · 0.36