mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
cmAlgorithms: add utility functions to get signed size of containers
This commit is contained in:
1 parent
6d37652368
commit
70e245f19e
1 file changed
+6
@@ -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