| 359 | } |
| 360 | |
| 361 | bool CDBWrapper::IsEmpty() |
| 362 | { |
| 363 | std::unique_ptr<CDBIterator> it(NewIterator()); |
| 364 | it->SeekToFirst(); |
| 365 | return !(it->Valid()); |
| 366 | } |
| 367 | |
| 368 | struct CDBIterator::IteratorImpl { |
| 369 | const std::unique_ptr<leveldb::Iterator> iter; |
no test coverage detected