Evo C++ Library v0.5.1
Public Types | Static Public Attributes | List of all members
IsSmartPtr< T > Struct Template Reference

#include <evo/ptr.h>

Inheritance diagram for IsSmartPtr< T >:
Inheritance graph
[legend]

Detailed Description

template<class T>
struct evo::IsSmartPtr< T >

Check if type is a SmartPtr or SharedPtr.

Value member holds result.

Template Parameters
TType to check.
Example
#include <evo/ptr.h>
using namespace evo;
int main() {
bool b1 = IsSmartPtr< SmartPtr<char> >::value; // true
bool b2 = IsSmartPtr<char*>::value; // false
bool b3 = IsSmartPtr<char>::value; // false
return 0;
}

Public Types

typedef evo::StaticBool< val > Type
 This type. More...
 

Static Public Attributes

static const bool value = val
 Result value. More...
 

Member Typedef Documentation

◆ Type

typedef evo::StaticBool<val> Type
inherited

This type.

Member Data Documentation

◆ value

const bool value = val
staticinherited

Result value.


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