mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Add helper lib for strings and vectors
This commit is contained in:
parent
6ef9740db9
commit
2bb7fcfcc6
10 changed files with 168 additions and 123 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
|
||||
#include "TaskItem.h"
|
||||
#include <algorithm>
|
||||
#include "cpp-utils/vector.h"
|
||||
|
||||
namespace mirai {
|
||||
|
||||
|
@ -36,6 +36,6 @@ namespace mirai {
|
|||
|
||||
|
||||
bool TaskItem::hasTag(const std::string& tag) const {
|
||||
return std::find(tags.begin(), tags.end(), tag) != tags.end();
|
||||
return vectorUtils::contains(tags, tag);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue