dlr::common::type_tag< Type > Class Template Reference

#include <tags.h>


Detailed Description

template<class Type>
class dlr::common::type_tag< Type >

Deprecated:
{Largely replaced by explicit template specialization and by the typedefs in dlrCommon/types.h}
Largely superfluous class for representing an arbitrary type. Sometimes we need write a template without a meaningful argument of the templated type. The class type_tag<> was introduced to make it easy to do this. Example:

Array2D<double> A = identity(4, type_tag<double>());

or

const type_tag<double> Double; Array2D<double> A = identity(4, Double);

Note that it's generally just as good to write the template argument explicitly, like this:

int myInt = convertString<int>(myString);

We are moving away from the use of the type_tag template.

Definition at line 47 of file tags.h.


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

Generated on Fri Oct 17 16:07:11 2008 for dlrCommon Utility Library by  doxygen 1.5.5