mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Database: Add method empty
This commit is contained in:
parent
2df76a2ef0
commit
894f8ba5d8
2 changed files with 6 additions and 0 deletions
|
@ -434,6 +434,11 @@ std::vector <Range> Database::segmentRange (const Range& range)
|
|||
return segments;
|
||||
}
|
||||
|
||||
bool Database::empty ()
|
||||
{
|
||||
return Database::begin () == Database::end ();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Database::initializeTagDatabase ()
|
||||
{
|
||||
|
|
|
@ -107,6 +107,7 @@ public:
|
|||
|
||||
std::string dump () const;
|
||||
|
||||
bool empty ();
|
||||
iterator begin ();
|
||||
iterator end ();
|
||||
reverse_iterator rbegin ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue