Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2885)

Unified Diff: base/tuple.h

Issue 1159553007: Move Tuple to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/observer_list_threadsafe.h ('k') | base/tuple_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tuple.h
diff --git a/base/tuple.h b/base/tuple.h
index 4628aa9417c395b472cfea0557af8b3da8b3fe3e..ef51d85fed9e7e5a5460a78595f245e3feeaef64 100644
--- a/base/tuple.h
+++ b/base/tuple.h
@@ -30,6 +30,8 @@
#include "base/bind_helpers.h"
+namespace base {
+
// Index sequences
//
// Minimal clone of the similarly-named C++14 functionality.
@@ -181,9 +183,9 @@ struct TupleLeaf {
// Allows accessing an arbitrary tuple element by index.
//
// Example usage:
-// Tuple<int, double> t2;
-// get<0>(t2) = 42;
-// get<1>(t2) = 3.14;
+// base::Tuple<int, double> t2;
+// base::get<0>(t2) = 42;
+// base::get<1>(t2) = 3.14;
template <size_t I, typename T>
T& get(TupleLeaf<I, T>& leaf) {
@@ -329,4 +331,6 @@ inline void DispatchToMethod(ObjT* obj,
MakeIndexSequence<sizeof...(OutTs)>());
}
+} // namespace base
+
#endif // BASE_TUPLE_H_
« no previous file with comments | « base/observer_list_threadsafe.h ('k') | base/tuple_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698