Conversion function to int, which can be used when int is needed to avoid

This commit is contained in:
Klaus Basan
2018-05-10 03:30:32 +02:00
parent 2dc2d94b53
commit 47afc4d6fc

View File

@@ -152,6 +152,9 @@ namespace BlackMisc
//! Returns number of elements in the sequence.
size_type size() const { return m_impl.size(); }
//! Avoid compiler warnings when using with int
int sizeInt() const { return static_cast<int>(this->size()); }
//! Returns true if the sequence is empty.
bool empty() const { return m_impl.isEmpty(); }