mirror of
https://github.com/reactos/CMake.git
synced 2025-01-22 11:24:56 +00:00
cmAlgorithms: add utility functions to get signed size of containers
This commit is contained in:
parent
6d37652368
commit
70e245f19e
@ -396,6 +396,12 @@ constexpr
|
||||
|
||||
#endif
|
||||
|
||||
template <typename T>
|
||||
int isize(const T& t)
|
||||
{
|
||||
return static_cast<int>(cm::size(t));
|
||||
}
|
||||
|
||||
#if __cplusplus >= 201402L || defined(_MSVC_LANG) && _MSVC_LANG >= 201402L
|
||||
|
||||
using std::cbegin;
|
||||
|
Loading…
x
Reference in New Issue
Block a user