MCPcopy Create free account
hub / github.com/aguinet/usbtop / construct_or_replace

Function construct_or_replace

third-party/boost/circular_buffer/base.hpp:2415–2420  ·  view source on GitHub ↗

Construct or replace an element. ! construct has to be set to true if and only if pos points to an uninitialized memory. */

Source from the content-addressed store, hash-verified

2413 <code>pos</code> points to an uninitialized memory.
2414 */
2415 void construct_or_replace(bool construct, pointer pos, param_value_type item) {
2416 if (construct)
2417 boost::container::allocator_traits<Alloc>::construct(m_alloc, boost::to_address(pos), item);
2418 else
2419 replace(pos, item);
2420 }
2421
2422 //! Construct or replace an element.
2423 /*!

Callers 2

rinsert_implFunction · 0.85
base.hppFile · 0.85

Calls 3

to_addressFunction · 0.85
replaceFunction · 0.85
moveFunction · 0.85

Tested by

no test coverage detected