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 712 of file type_traits.h.

712 {
713 // Force copy semantics (for cases where move might not be safe)
714 T tmp = a;
715 a = b;
716 b = tmp;
717}