WPILibC++  2020.3.2-60-g3011ebe
wpi::PointerUnionTypeSelector< T1, T2, RET_EQ, RET_NE > Struct Template Reference

Get a type based on whether two types are the same or not. More...

#include <PointerUnion.h>

Public Types

using Return = typename PointerUnionTypeSelectorReturn< RET_NE >::Return
 

Detailed Description

template<typename T1, typename T2, typename RET_EQ, typename RET_NE>
struct wpi::PointerUnionTypeSelector< T1, T2, RET_EQ, RET_NE >

Get a type based on whether two types are the same or not.

For:

using Ret = typename PointerUnionTypeSelector<T1, T2, EQ, NE>::Return;

Ret will be EQ type if T1 is same as T2 or NE type otherwise.


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