FastLED 3.10.8
Loading...
Searching...
No Matches

◆ swap_by_copy()

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

Definition at line 896 of file type_traits.h.

896 {
897 // Force copy semantics (for cases where move might not be safe)
898 T tmp = a;
899 a = b;
900 b = tmp;
901}

References FL_NO_EXCEPT.