提交 8dfba518 编写于 作者: D Dmitry Budnikov

add empty implementation

上级 055ffc04
......@@ -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
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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册