Blaze 3.9
Loading...
Searching...
No Matches
blaze::IsProxy< T > Struct Template Reference

Compile time check for proxy types. More...

#include <IsProxy.h>

Detailed Description

template<typename T>
struct blaze::IsProxy< T >

Compile time check for proxy types.

This type trait tests whether or not the given template parameter is a proxy type (i.e. publicly derived from the blaze::Proxy class template). In case the type is a proxy, the value member constant is set to true, the nested type definition Type is TrueType, and the class derives from TrueType. Otherwise value is set to false, Type is FalseType, and the class derives from FalseType.

class MyProxy1 : public Proxy<MyProxy1> {};
class MyProxy2 : public Proxy<MyProxy2,int> {};
class MyProxy3 : public Proxy<MyProxy3,double> {};
class MyProxy4 {};
blaze::IsProxy< MyProxy1 >::value // Evaluates to 1
blaze::IsProxy< const MyProxy2 >::Type // Results in TrueType
blaze::IsProxy< volatile MyProxy3 > // Is derived from TrueType
blaze::IsProxy< MyProxy4 >::value // Evaluates to 0
blaze::IsProxy< const MyProxy4 >::Type // Results in FalseType
blaze::IsProxy< volatile MyProxy4 > // Is derived from FalseType
Proxy base class.
Definition Proxy.h:169

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