| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_GN_LABEL_PTR_H_ | 5 #ifndef TOOLS_GN_LABEL_PTR_H_ |
| 6 #define TOOLS_GN_LABEL_PTR_H_ | 6 #define TOOLS_GN_LABEL_PTR_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <functional> | 10 #include <functional> |
| 9 | 11 |
| 10 #include "tools/gn/label.h" | 12 #include "tools/gn/label.h" |
| 11 | 13 |
| 12 class Config; | 14 class Config; |
| 13 class ParseNode; | 15 class ParseNode; |
| 14 class Target; | 16 class Target; |
| 15 | 17 |
| 16 // Structure that holds a labeled "thing". This is used for various places | 18 // Structure that holds a labeled "thing". This is used for various places |
| 17 // where we need to store lists of targets or configs. We sometimes populate | 19 // where we need to store lists of targets or configs. We sometimes populate |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 template<typename T> struct hash< LabelPtrPair<T> > { | 110 template<typename T> struct hash< LabelPtrPair<T> > { |
| 109 std::size_t operator()(const LabelPtrPair<T>& v) const { | 111 std::size_t operator()(const LabelPtrPair<T>& v) const { |
| 110 BASE_HASH_NAMESPACE::hash<Label> h; | 112 BASE_HASH_NAMESPACE::hash<Label> h; |
| 111 return h(v.label); | 113 return h(v.label); |
| 112 } | 114 } |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 } // namespace BASE_HASH_NAMESPACE | 117 } // namespace BASE_HASH_NAMESPACE |
| 116 | 118 |
| 117 #endif // TOOLS_GN_LABEL_PTR_H_ | 119 #endif // TOOLS_GN_LABEL_PTR_H_ |
| OLD | NEW |