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

◆ get_swap_fn() [1/2]

template<typename T>
fl::enable_if< is_swappable< T >::value, void(*)(void *, void *) FL_NOEXCEPT >::type fl::detail::get_swap_fn ( )

Definition at line 270 of file basic_vector.h.

270 {
271 return [](void* a, void* b) FL_NOEXCEPT {
272 T& ta = *static_cast<T*>(a);
273 T& tb = *static_cast<T*>(b);
274 T tmp(static_cast<T&&>(ta));
275 ta = static_cast<T&&>(tb);
276 tb = static_cast<T&&>(tmp);
277 };
278}
#define FL_NOEXCEPT

References FL_NOEXCEPT.

Referenced by fl::vector_element_ops_for().

+ Here is the caller graph for this function: