EvalState::allocAttr(): Add convenience method

This commit is contained in:
Eelco Dolstra
2019-02-11 11:55:29 +01:00
parent f70434b1fb
commit c02da99757
2 changed files with 7 additions and 0 deletions
+6
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());