size_t height() const {
IT h = 0;
for (unsigned c=0; c < width(); ++c)
- if (cols[c].size() > 0)
+ if (!cols[c].isempty())
h = std::max(h, cols[c].back());
return h+1;
}
os << "-";
- if (col.size() != 0)
+ if (!col.isempty())
height = std::max(height, col.back());
}
for (unsigned c=0; c < mat.width(); ++c) {
std::list<IT> &col = cols.at(c);
// This column is already empty
- if (col.size() == 0)
+ if (col.isempty())
os << " ";
else if (col.front() == r) {
os << "X";