chromium/third_party/pdfium/core/fxcrt/scoped_set_insertion.h

// Copyright 2021 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CORE_FXCRT_SCOPED_SET_INSERTION_H_
#define CORE_FXCRT_SCOPED_SET_INSERTION_H_

#include <set>
#include <utility>

#include "core/fxcrt/check.h"
#include "core/fxcrt/fx_memory.h"
#include "core/fxcrt/unowned_ptr.h"

namespace fxcrt {

// Track the addition of an object to a set, removing it automatically when
// the ScopedSetInsertion goes out of scope.
template <typename T>
class ScopedSetInsertion {};

}  // namespace fxcrt

ScopedSetInsertion;

#endif  // CORE_FXCRT_SCOPED_SET_INSERTION_H_