return entry->element;
}
bool end() {
- return next_entry == NULL;
+ return next_entry == nullptr;
}
private:
/** \endcond */
template <class C>
-CbDataList<C>::CbDataList(C const &value) : next(NULL), element (value)
+CbDataList<C>::CbDataList(C const &value) : next(nullptr), element (value)
{}
template <class C>
bool
CbDataList<C>::find (C const &toFind) const
{
- CbDataList<C> const *node = NULL;
+ CbDataList<C> const *node = nullptr;
for (node = this; node; node = node->next)
if (node->element == toFind)
}
template <class C>
-CbDataListContainer<C>::CbDataListContainer() : head (NULL)
+CbDataListContainer<C>::CbDataListContainer() : head (nullptr)
{}
template <class C>
CbDataList<C> *node = new CbDataList<C> (element);
if (head) {
- CbDataList<C> *tempNode = NULL;
+ CbDataList<C> *tempNode = nullptr;
for (tempNode = head; tempNode->next; tempNode = tempNode->next);
tempNode->next = node;
bool
CbDataListContainer<C>::empty() const
{
- return head == NULL;
+ return head == nullptr;
}
#endif /* SQUID_CBDATALIST_H */