MCPcopy Create free account
hub / github.com/FastLED/FastLED / copy_construct_from

Function copy_construct_from

src/fl/stl/variant.h:241–249  ·  view source on GitHub ↗

–– copy‐construct via table

Source from the content-addressed store, hash-verified

239
240 // –– copy‐construct via table
241 void copy_construct_from(const variant &other) FL_NOEXCEPT {
242 using Fn = void (*)(void *, const variant &);
243 FL_DISABLE_WARNING_PUSH
244 FL_DISABLE_WARNING(array-bounds)
245 static constexpr Fn table[] = {&variant::template copy_fn<Types>...};
246 table[other._tag - 1](&_storage, other);
247 FL_DISABLE_WARNING_POP
248 _tag = other._tag;
249 }
250
251 template <typename T>
252 static void copy_fn(void *storage, const variant &other) FL_NOEXCEPT {

Callers 2

variantFunction · 0.85
variant.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected