mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Conversion function to int, which can be used when int is needed to avoid
This commit is contained in:
@@ -152,6 +152,9 @@ namespace BlackMisc
|
|||||||
//! Returns number of elements in the sequence.
|
//! Returns number of elements in the sequence.
|
||||||
size_type size() const { return m_impl.size(); }
|
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.
|
//! Returns true if the sequence is empty.
|
||||||
bool empty() const { return m_impl.isEmpty(); }
|
bool empty() const { return m_impl.isEmpty(); }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user