diff options
Diffstat (limited to 'deps/v8/src/zone/zone-containers.h')
-rw-r--r-- | deps/v8/src/zone/zone-containers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/src/zone/zone-containers.h b/deps/v8/src/zone/zone-containers.h index 78d25cc644..5e9fd0440a 100644 --- a/deps/v8/src/zone/zone-containers.h +++ b/deps/v8/src/zone/zone-containers.h @@ -41,6 +41,11 @@ class ZoneVector : public std::vector<T, ZoneAllocator<T>> { ZoneVector(size_t size, T def, Zone* zone) : std::vector<T, ZoneAllocator<T>>(size, def, ZoneAllocator<T>(zone)) {} + // Constructs a new vector and fills it with the contents of the given + // initializer list. + ZoneVector(std::initializer_list<T> list, Zone* zone) + : std::vector<T, ZoneAllocator<T>>(list, ZoneAllocator<T>(zone)) {} + // Constructs a new vector and fills it with the contents of the range // [first, last). template <class InputIt> |