Commit 02f4d6ca authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #15777 from dbudniko:dbudniko/add_own_empty

parents 055ffc04 8dfba518
...@@ -284,7 +284,10 @@ namespace cv { namespace gapi { namespace own { ...@@ -284,7 +284,10 @@ namespace cv { namespace gapi { namespace own {
The method returns true if Mat::total() is 0 or if Mat::data is NULL. Because of pop_back() and The method returns true if Mat::total() is 0 or if Mat::data is NULL. Because of pop_back() and
resize() methods `M.total() == 0` does not imply that `M.data == NULL`. resize() methods `M.total() == 0` does not imply that `M.data == NULL`.
*/ */
bool empty() const; bool empty() const
{
return data == 0 || total() == 0 || dims.empty();
}
/** @brief Returns the total number of array elements. /** @brief Returns the total number of array elements.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment