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

Unified Diff: mojo/public/cpp/bindings/lib/map_internal.h

Issue 2014403002: Mojo C++ bindings: custom type mapping of map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: mojo/public/cpp/bindings/lib/map_internal.h
diff --git a/mojo/public/cpp/bindings/lib/map_internal.h b/mojo/public/cpp/bindings/lib/map_internal.h
index 4f79f7850b274015aa48078ce7b3edc63937e5a0..0207e99260898879496e3c5fbf4ca402776232d7 100644
--- a/mojo/public/cpp/bindings/lib/map_internal.h
+++ b/mojo/public/cpp/bindings/lib/map_internal.h
@@ -16,11 +16,11 @@ namespace mojo {
namespace internal {
template <typename Key, typename Value, bool kValueIsMoveOnlyType>
-struct MapTraits {};
+struct MapCloneTraits {};
// Defines traits of a map for which Value is not a move-only type.
template <typename Key, typename Value>
-struct MapTraits<Key, Value, false> {
+struct MapCloneTraits<Key, Value, false> {
static inline void Clone(const std::map<Key, Value>& src,
std::map<Key, Value>* dst) {
dst->clear();
@@ -31,7 +31,7 @@ struct MapTraits<Key, Value, false> {
// Defines traits of a map for which Value is a move-only type.
template <typename Key, typename Value>
-struct MapTraits<Key, Value, true> {
+struct MapCloneTraits<Key, Value, true> {
static inline void Clone(const std::map<Key, Value>& src,
std::map<Key, Value>* dst) {
dst->clear();
« no previous file with comments | « mojo/public/cpp/bindings/lib/array_serialization.h ('k') | mojo/public/cpp/bindings/lib/map_serialization.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698