cmAlgorithms: add utility functions to get signed size of containers

This commit is contained in:
Bruno Manganelli 2018-12-24 20:52:58 +00:00
parent 6d37652368
commit 70e245f19e

View File

@ -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;