local_vector.h
Source contains an unconditional loopimports core/os/memory.h
SHA-2562f0defd9e115642d18e2a279b210041fc06ec7a5708f76bc3bfc9971c597e8be
MaleculeH(Db₂)Md(In)
Evidence
3:57… *******************/
4/* This file is part of: */
5/* GODOT ENGINE …
11:51… o any person obtaining */
12/* a copy of this software and associated documentation files (the */
13/* "Software"), to deal in the Software without restriction, including */
14/* witho …
23:58… ARRANTIES OF */
24/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
25/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLD …
29:44… ********************************/
30
31#pragma once
32
33#include "core/error/error_macros.h"
34#include "core/os/memory.h"
35#include "core/string/print_string.h" // IWYU pragma: keep. `WARN_VERBOSE` macro.
36#include "core/templates/sort_array.h"
37#include "core/templates/vector.h"
38
39#include <initializer_list>
40#include <type_traits>
41
42// If tight, it grows strictly as much as needed.
43// Otherwise, it grows exponentially (the de …
338:11… ze(count * sizeof(T));
339 uint8_t *w = ret.ptrw();
340 if (w) {
341 memcpy(w, data, sizeof(T) * count);
342 }
343 return ret;
⋯4 lines