// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_UTILS_SCOPED_LIST_H_ #define V8_UTILS_SCOPED_LIST_H_ #include <type_traits> #include <vector> #include "src/base/logging.h" namespace v8 { namespace base { template <typename T> class Vector; } // namespace base namespace internal { template <typename T> class ZoneList; // ScopedList is a scope-lifetime list with a std::vector backing that can be // re-used between ScopedLists. Note that a ScopedList in an outer scope cannot // add any entries if there is a ScopedList with the same backing in an inner // scope. template <typename T, typename TBacking = T> class V8_NODISCARD ScopedList final { … }; ScopedPtrList; } // namespace internal } // namespace v8 #endif // V8_UTILS_SCOPED_LIST_H_