Added array method used to push strings from list.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6536 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2022-01-11 09:02:27 +00:00
parent 5de1480c97
commit 6cb563308f
1 changed files with 9 additions and 0 deletions

View File

@ -2840,6 +2840,15 @@ public:
*/
void push(ExpOperation* item);
/**
* Add string items at the end of the array
* @param lst List with items to push
*/
inline void push(const ObjList& lst) {
for (const ObjList* o = lst.skipNull(); o; o = o->skipNext())
push(new ExpOperation(o->get()->toString()));
}
/**
* Deep copy method
* @param mtx Pointer to the mutex that serializes the copied array