blaze::IsProxy< T > Struct Template Reference

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. More...

#include <IsProxy.h>

Inherits Type< T >.

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< volatile MyProxy3 > // Is derived from TrueType
blaze::IsProxy< volatile MyProxy4 > // Is derived from FalseType

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