chromium/third_party/ipcz/src/util/unique_ptr_comparator.h

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

#ifndef IPCZ_SRC_UTIL_UNIQUE_PTR_COMPARATOR_H_
#define IPCZ_SRC_UTIL_UNIQUE_PTR_COMPARATOR_H_

#include <memory>

namespace ipcz {

// Cribbed from Chromium base, this defines a transparent comparator so that
// unique_ptr keys can be compared against raw pointers for lookup in various
// types of associative containers.
struct UniquePtrComparator {};

}  // namespace ipcz

#endif  // IPCZ_SRC_UTIL_UNIQUE_PTR_COMPARATOR_H_