mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
cmAlgorithms: add utility functions to get signed size of containers
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user