Searched defs:ilist_sentinel_traits (Results 1 – 2 of 2) sorted by relevance
76 struct ilist_sentinel_traits { struct78 static NodeTy *createSentinel() { return new NodeTy(); } in createSentinel()81 static void destroySentinel(NodeTy *N) { delete N; } in destroySentinel()86 static NodeTy *provideInitialHead() { return nullptr; } in provideInitialHead()91 static NodeTy *ensureHead(NodeTy *&Head) { in ensureHead()102 static void noteHead(NodeTy *NewHead, NodeTy *Sentinel) { in noteHead()
152 struct ilist_sentinel_traits<Token> { struct153 Token *createSentinel() const { in createSentinel()156 static void destroySentinel(Token*) {} in destroySentinel()158 Token *provideInitialHead() const { return createSentinel(); } in provideInitialHead()159 Token *ensureHead(Token*) const { return createSentinel(); } in ensureHead()160 static void noteHead(Token*, Token*) {} in noteHead()163 mutable Token Sentinel;