Skip to content

Commit d2f265c

Browse files
committed
shared_index has()
1 parent 20308d4 commit d2f265c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/kit/kit.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,10 @@ namespace kit
551551
bool is_reserved(unsigned idx) const {
552552
return m_Reserved.find(idx) != m_Reserved.end();
553553
}
554+
555+
bool has(unsigned idx) {
556+
return m_Group.find(idx) != m_Group.end();
557+
}
554558

555559
// WARNING: obtain lock before iterating
556560
typedef typename std::map<unsigned, std::shared_ptr<T>>::const_iterator

0 commit comments

Comments
 (0)