Update documentation for Synchronized
[folly.git] / folly / Foreach.h
index 8f21346438644cbeba3cfe39c08d0ea1058b15e1..d362c0bab2b3378bddb0637c11287c8a007838ca 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014 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.
@@ -14,8 +14,7 @@
  * limitations under the License.
  */
 
-#ifndef FOLLY_BASE_FOREACH_H_
-#define FOLLY_BASE_FOREACH_H_
+#pragma once
 
 /*
  * Iterim macros (until we have C++0x range-based for) that simplify
@@ -47,7 +46,7 @@
  * generates code 100% identical to the handwritten loop.
  */
 
-#include <boost/type_traits/remove_cv.hpp>
+#include <type_traits>
 
 /*
  * Shorthand for:
@@ -227,5 +226,3 @@ downTo(T& iter, const U& begin) {
  */
 #define FOR_EACH_RANGE_R(i, begin, end) \
   for (auto i = (false ? (begin) : (end)); ::folly::detail::downTo(i, (begin));)
-
-#endif