1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-04 23:51:47 +02:00

EvalState::allocAttr(): Add convenience method

This commit is contained in:
Eelco Dolstra 2018-11-26 19:55:48 +01:00
parent f70434b1fb
commit c02da99757
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 7 additions and 0 deletions

View file

@ -43,6 +43,12 @@ Value * EvalState::allocAttr(Value & vAttrs, const Symbol & name)
}
Value * EvalState::allocAttr(Value & vAttrs, const std::string & name)
{
return allocAttr(vAttrs, symbols.create(name));
}
void Bindings::sort()
{
std::sort(begin(), end());