// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_OPTIMIZATION_GUIDE_CORE_INSERTION_ORDERED_SET_H_ #define COMPONENTS_OPTIMIZATION_GUIDE_CORE_INSERTION_ORDERED_SET_H_ #include <vector> #include "base/containers/flat_set.h" namespace optimization_guide { // Keeps a set of unique element, while preserving the insertion order. vector() // can be accessed to get the ordered elements. template <typename T> class InsertionOrderedSet { … }; } // namespace optimization_guide #endif // COMPONENTS_OPTIMIZATION_GUIDE_CORE_INSERTION_ORDERED_SET_H_