llvm/llvm/include/llvm/ADT/DenseMapInfoVariant.h

//===- DenseMapInfoVariant.h - Type traits for DenseMap<variant> *- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file defines DenseMapInfo traits for DenseMap<std::variant<Ts...>>.
///
//===----------------------------------------------------------------------===//

#ifndef LLVM_ADT_DENSEMAPINFOVARIANT_H
#define LLVM_ADT_DENSEMAPINFOVARIANT_H

#include "llvm/ADT/DenseMapInfo.h"
#include <utility>
#include <variant>

namespace llvm {

// Provide DenseMapInfo for variants whose all alternatives have DenseMapInfo.
DenseMapInfo<std::variant<Ts...>>;

} // end namespace llvm

#endif // LLVM_ADT_DENSEMAPINFOVARIANT_H