qtypetraits.h: add is_signed/is_unsigned/not_/not_c predicates
authorMarc Mutz <marc.mutz@kdab.com>
Thu, 20 Sep 2012 13:01:09 +0000 (15:01 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 27 Sep 2012 00:25:25 +0000 (02:25 +0200)
commitd85dd245f9a1a2959af4d2d68a45cf1dca419767
treebea032f32be21cfce1759f140cfe99222415249f
parenta19fd0f9265bed96197a6823887c6f03fc23112d
qtypetraits.h: add is_signed/is_unsigned/not_/not_c predicates

is_signed/is_unsigned check whether the type argument is signed
or unsigned, resp., and will be used in QFlags to select the
correct underlying integer type.

not_ is used in the implementation of is_signed

not_c is for completeness (version of not_ that takes a bool
instead of an integral_constant).

Change-Id: I77cc445e8c6cf3181336505c9c13478fba3e7890
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/global/qtypetraits.h