diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-22T00·54+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-22T00·59+0100 |
commit | 42205f27fc820ddc64616d55c04e2ffde1948043 (patch) | |
tree | 06cbc1332eec9fb083f7a31bf0dcd092d1e23139 /third_party/nix/src/libexpr/attr-set.hh | |
parent | ee4637e3a22a1efc480bb66ea025afd107d1b158 (diff) |
refactor(3p/nix/libexpr): Use absl::btree_map::iterator type r/801
Instead of using a custom Args* iterator, use the one belonging to the map type directly.
Diffstat (limited to 'third_party/nix/src/libexpr/attr-set.hh')
-rw-r--r-- | third_party/nix/src/libexpr/attr-set.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/attr-set.hh b/third_party/nix/src/libexpr/attr-set.hh index 39af7c482eab..4ae908964cd1 100644 --- a/third_party/nix/src/libexpr/attr-set.hh +++ b/third_party/nix/src/libexpr/attr-set.hh @@ -31,7 +31,7 @@ inline bool operator==(const Attr& lhs, const Attr& rhs) { class Bindings { public: - typedef Attr* iterator; // TODO: type, and also 'using'? + typedef absl::btree_map<Symbol, Attr>::iterator iterator; // Return the number of contained elements. size_t size(); @@ -71,4 +71,5 @@ class Bindings { private: absl::btree_map<Symbol, Attr> attributes_; }; + } // namespace nix |