/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Alignment/Geners/interface/IOIsUnsigned.hh
35 строк
1 KB
Cms Build
Clang-Format
08 май 2019, 15:16
08 май 2019, 15:16
7614b05
Код
Авторство
О чём код?
#ifndef GENERS_IOISUNSIGNED_HH_ #define GENERS_IOISUNSIGNED_HH_ namespace gs { template <class T> struct IOIsUnsigned { enum { value = 0 }; }; } // namespace gs #define gs_declare_type_as_unsigned(T) /**/ \ namespace gs { \ template <> \ struct IOIsUnsigned<T> { \ enum { value = 1 }; \ }; \ template <> \ struct IOIsUnsigned<T const> { \ enum { value = 1 }; \ }; \ template <> \ struct IOIsUnsigned<T volatile> { \ enum { value = 1 }; \ }; \ template <> \ struct IOIsUnsigned<T const volatile> { \ enum { value = 1 }; \ }; \ } gs_declare_type_as_unsigned(unsigned char) gs_declare_type_as_unsigned(unsigned short) gs_declare_type_as_unsigned(unsigned int) gs_declare_type_as_unsigned(unsigned long) gs_declare_type_as_unsigned(unsigned long long) #endif // GENERS_IOISUNSIGNED_HH_