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

Method reallocate

src/fl/stl/allocator.h:175–178  ·  view source on GitHub ↗

Optional: reallocate() for in-place resizing Automatically uses fl::realloc() for trivially copyable types Returns nullptr on failure or if type is not trivially copyable

Source from the content-addressed store, hash-verified

173 // Automatically uses fl::realloc() for trivially copyable types
174 // Returns nullptr on failure or if type is not trivially copyable
175 pointer reallocate(pointer ptr, fl::size old_count, fl::size new_count) FL_NOEXCEPT {
176 return reallocate_impl(ptr, old_count, new_count,
177 fl::integral_constant<bool, fl::is_trivially_copyable<T>::value>{});
178 }
179
180private:
181 // SFINAE: Use fl::realloc() for trivially copyable types

Calls

no outgoing calls

Tested by

no test coverage detected