PVData C++  8.0.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | List of all members
epics::pvData::meta::not_same_type< A, B, R > Struct Template Reference

#include <misc/pv/templateMeta.h>

Public Types

typedef R type
 

Detailed Description

template<typename A, typename B, typename R = void>
struct epics::pvData::meta::not_same_type< A, B, R >

test to allow specialization only when A!=B

template<typename A, typename B, class Enable = void>
struct myTemp {...};
// specialization when A==B
template<typename T>
struct myTemp<T,T> {...};
// specialization for A is 'int',
// enabler needed to remove ambiguity when B is 'int'.
template<typename B>
struct myTemp<int, B, typename meta::not_same_type<int,B>::type>
{...};

Definition at line 64 of file templateMeta.h.


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