LLVM 20.0.0git
llvm::TypesAreDistinct< Ts > Struct Template Reference

Determine if all types in Ts are distinct. More...

#include "llvm/ADT/STLExtras.h"

Inheritance diagram for llvm::TypesAreDistinct< Ts >:
Inheritance graph
[legend]

Detailed Description

template<typename... Ts>
struct llvm::TypesAreDistinct< Ts >

Determine if all types in Ts are distinct.

Useful to statically assert when Ts is intended to describe a non-multi set of types.

Expensive (currently quadratic in sizeof(Ts...)), and so should only be asserted once per instantiation of a type which requires it.

Definition at line 155 of file STLExtras.h.


The documentation for this struct was generated from the following file: