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()
147 struct ilist_sentinel_traits<Token> { struct148 Token *createSentinel() const { in createSentinel()151 static void destroySentinel(Token*) {} in destroySentinel()153 Token *provideInitialHead() const { return createSentinel(); } in provideInitialHead()154 Token *ensureHead(Token*) const { return createSentinel(); } in ensureHead()155 static void noteHead(Token*, Token*) {} in noteHead()158 mutable Token Sentinel;