Add needsPeerVerification function to check if peer cert should be verified
[folly.git] / folly / AtomicLinkedList.h
index ee826a7b00d439755a95b4c13f924b3e56588543..022a7123a18cb920eaf89869adde192b86b2548c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#pragma once
 
-#include <atomic>
-#include <cassert>
+#pragma once
 
 #include <folly/AtomicIntrusiveLinkedList.h>
 #include <folly/Memory.h>
@@ -46,7 +44,9 @@ class AtomicLinkedList {
     sweep([](T&&) {});
   }
 
-  bool empty() const { return list_.empty(); }
+  bool empty() const {
+    return list_.empty();
+  }
 
   /**
    * Atomically insert t at the head of the list.