WPILibC++ 2025.3.1
Loading...
Searching...
No Matches
wpi::TypesAreDistinct< Ts > Struct Template Reference

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

#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: