Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SH::MatchTemplateType< T, B > Struct Template Reference

Returns true if T matches a given templated type. More...

#include <ShUtility.hpp>

Inheritance diagram for SH::MatchTemplateType< T, B >:

Inheritance graph
[legend]
List of all members.

Static Public Attributes

static const bool matches

Detailed Description

template<typename T, template< typename A > class B>
struct SH::MatchTemplateType< T, B >

Returns true if T matches a given templated type.

For example, MatchTemplateType<int, ShInterval>::matches == false but MatchTemplateType<ShInterval<int>, ShInterval>::matches == true

You can subclass this like this: template<typename T> struct MatchMyType: public MatchTemplateType<T, MyType> {}; to match your own complex types with less typing (hah hah, stupid pun).

The basic class here is standards compliant and works in VC .NET 2003, but not sure what will happen in more complex template vodoo.

Definition at line 109 of file ShUtility.hpp.


The documentation for this struct was generated from the following file:
Generated on Mon Jan 24 18:38:25 2005 for Sh by  doxygen 1.4.1