Cleanup: Replace push_back with emplace_back
In cases where we create a new item and immediately push into a container, the emplace idiom is faster and more efficient.
This commit is contained in:
@@ -141,7 +141,7 @@ double Evaluate( AM_PARAM_EVAL_STACK& aExp )
|
||||
}
|
||||
else
|
||||
{
|
||||
optype.push_back( OP_CODE( prm ) );
|
||||
optype.emplace_back( prm );
|
||||
optype.back().m_Priority += extra_priority;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user