ugmisc 0.2-86
Miscellaneous C++ header library
Loading...
Searching...
No Matches
ugmisc::Uint Concept Reference

#include <ugmisc/sfinae_helpers.hpp>

Concept definition

template<class T>
concept ugmisc::Uint =
std::numeric_limits<T>::is_integer
&& ! std::numeric_limits<T>::is_signed
Definition sfinae_helpers.hpp:132

Detailed Description

Requires T to be an unsigned integer. This works for user defined types, as long as they have specialised std::numeric_limits properly.

Note
Compiler support for concepts is not required to use UgMisc. All declarations which use concepts will be replaced with different declarations which work around the lack of concepts.