/*
- * Copyright 2015 Facebook, Inc.
+ * Copyright 2016 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#ifndef FOLLY_ATOMIC_LINKED_LIST_H_
-#define FOLLY_ATOMIC_LINKED_LIST_H_
+#pragma once
#include <atomic>
#include <cassert>
* Note: list must be empty on destruction.
*/
~AtomicLinkedList() {
- assert(head_ == nullptr);
+ assert(empty());
}
bool empty() const {
};
} // namespace folly
-
-#endif