WPILibC++ 2024.1.1-beta-4
wpi::TypesAreDistinct< Ts > Struct Template Reference

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

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/PointerUnion.h>

Inheritance diagram for wpi::TypesAreDistinct< Ts >:

Detailed Description

template<typename... Ts>
struct wpi::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.


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