MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / swap

Function swap

concurrentqueue.h:3740–3743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3738
3739template<typename T, typename Traits>
3740inline void swap(ConcurrentQueue<T, Traits>& a, ConcurrentQueue<T, Traits>& b) MOODYCAMEL_NOEXCEPT
3741{
3742 a.swap(b);
3743}
3744
3745inline void swap(ProducerToken& a, ProducerToken& b) MOODYCAMEL_NOEXCEPT
3746{

Callers 11

ProducerTokenClass · 0.70
swapMethod · 0.70
ConsumerTokenClass · 0.70
swapMethod · 0.70
ConcurrentQueueClass · 0.70
ImplicitProducerKVPClass · 0.70
swapMethod · 0.70
swapMethod · 0.50
unittests.cppFile · 0.50
full_apiMethod · 0.50
blocking_wrappersMethod · 0.50

Calls 1

swapMethod · 0.45

Tested by 2

full_apiMethod · 0.40
blocking_wrappersMethod · 0.40