]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blobdiff - linker/linked_list.h
Support gethostbyname_r_ERANGE.
[android-sdk/platform-bionic.git] / linker / linked_list.h
index b088061611283e43e6a3368b1cc65f1e059b6049..a72b73ccd6753cf0d7a5b25b42819efbdcabce3f 100644 (file)
@@ -81,6 +81,14 @@ class LinkedList {
     return element;
   }
 
+  T* front() const {
+    if (head_ == nullptr) {
+      return nullptr;
+    }
+
+    return head_->element;
+  }
+
   void clear() {
     while (head_ != nullptr) {
       LinkedListEntry<T>* p = head_;