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

883 {
884 // Force copy semantics (for cases where move might not be safe)
885 T tmp = a;
886 a = b;
887 b = tmp;
888}

References FL_NOEXCEPT.