FastLED 3.9.15
Loading...
Searching...
No Matches

◆ swap_by_copy()

template<typename T>
void fl::swap_by_copy ( T & a,
T & b )

Definition at line 434 of file type_traits.h.

434 {
435 // if T is a POD, use use a simple data copy swap.
436 // if T is not a POD, use the T::Swap method.
437 T tmp = a;
438 a = b;
439 b = tmp;
440}