C++ type mapper library for C++0x
  • C++ 95.6%
  • Makefile 4.4%
Find a file
2013-02-28 19:13:52 -03:00
tests license changed, from gpl3 to modified bsd license 2013-02-02 14:06:03 -03:00
tm_pp license changed, from gpl3 to modified bsd license 2013-02-02 14:06:03 -03:00
.gitignore initial commit 2013-01-19 15:38:47 -03:00
LICENSE license changed, from gpl3 to modified bsd license 2013-02-02 14:06:03 -03:00
Makefile initial commit 2013-01-19 15:38:47 -03:00
README.md updating README.md 2013-02-28 19:13:52 -03:00

#TypeMapperPP

C++ type mapper library for C++0x

##Usage:

The type mapper is configured via TypeMapper class:

TypeMapper<TARGET, PREDICATES....>

Example:

typedef TypeMapper<Type<double>, is_integral> IntegralToDoubleMapper;

See tests/tm_pp_test.cpp for more examples.

##Target:

Type<T>

Maps to type T.

Uconst::To<T>

Maps to T with const attr removed.

Const::To<T>

Maps to const T.

See tests/targets_test.cpp for more examples.

##Predicate:

is_pointer<T>

is_integral<T>

is_const<T>

is_fundamental<T>

is_same<T>

is_reference<T>

is_equal<T>

See tests/predicates_test.cpp for more examples.