refactor(3p/nix/libexpr): Use absl::btree_map::iterator type
Instead of using a custom Args* iterator, use the one belonging to the map type directly.
This commit is contained in:
parent
ee4637e3a2
commit
42205f27fc
3 changed files with 11 additions and 5 deletions
3
third_party/nix/src/libexpr/attr-set.hh
vendored
3
third_party/nix/src/libexpr/attr-set.hh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue