projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update documentation for Synchronized
[folly.git]
/
folly
/
Foreach.h
diff --git
a/folly/Foreach.h
b/folly/Foreach.h
index 8f21346438644cbeba3cfe39c08d0ea1058b15e1..d362c0bab2b3378bddb0637c11287c8a007838ca 100644
(file)
--- a/
folly/Foreach.h
+++ b/
folly/Foreach.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright 201
4
Facebook, Inc.
+ * Copyright 201
6
Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* 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.
*/
* 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
/*
* Iterim macros (until we have C++0x range-based for) that simplify
@@
-47,7
+46,7
@@
* generates code 100% identical to the handwritten loop.
*/
* generates code 100% identical to the handwritten loop.
*/
-#include <
boost/type_traits/remove_cv.hpp
>
+#include <
type_traits
>
/*
* Shorthand for:
/*
* 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));)
*/
#define FOR_EACH_RANGE_R(i, begin, end) \
for (auto i = (false ? (begin) : (end)); ::folly::detail::downTo(i, (begin));)
-
-#endif