Template Function navtk::has_zero_size
Defined in File inspect.hpp
Function Documentation
-
template<typename T>
bool navtk::has_zero_size(const T &expression) Checks whether there is any data in a given iterable object.
Intended as a safer alternative to
!expression.size(), since some xtensor types can crash when.size()is called.- Parameters
expression – An iterable object.
- Returns
The boolean result.