Пример #1
0
	bool operator()(const DirectoryListing::Directory::Ptr i) const
	{
		const bool r = i->getFileCount() + i->directories.size() == 0;
		if (r)
		{
			DeleteFunction()(i);
		}
		return r;
	}
 bool operator()(const DirectoryListing::Directory::Ptr i) const {
     bool r = i->getFileCount() == 0 && i->directories.empty();
     if (r) DeleteFunction()(i);
     return r;
 }