FastLED 3.10.10
Loading...
Searching...
No Matches

◆ swap_by_copy()

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

Definition at line 912 of file type_traits.h.

912 {
913 // Force copy semantics (for cases where move might not be safe)
914 T tmp = a;
915 a = b;
916 b = tmp;
917}

References FL_NO_EXCEPT.