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
| 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 | |
| 180 | private: |
| 181 | // SFINAE: Use fl::realloc() for trivially copyable types |
no outgoing calls
no test coverage detected