MCPcopy Create free account
hub / github.com/davisking/dlib / swap

Method swap

dlib/queue/queue_kernel_2.h:395–409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 typename mem_manager
394 >
395 void queue_kernel_2<T,block_size,mem_manager>::
396 swap (
397 queue_kernel_2<T,block_size,mem_manager>& item
398 )
399 {
400 exchange(in,item.in);
401 exchange(out,item.out);
402 exchange(queue_size,item.queue_size);
403 exchange(in_pos,item.in_pos);
404 exchange(out_pos,item.out_pos);
405 exchange(current_element,item.current_element);
406 exchange(current_element_pos,item.current_element_pos);
407 exchange(at_start_,item.at_start_);
408 pool.swap(item.pool);
409 }
410
411// ----------------------------------------------------------------------------------------
412// ----------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 2

exchangeFunction · 0.85
swapMethod · 0.45

Tested by

no test coverage detected