Added to_list method for read only STL list access to the

observable_list
This commit is contained in:
Joel Holdsworth 2008-12-13 16:56:02 +00:00
parent fdb75fdd2a
commit efa4847a61

View file

@ -263,6 +263,19 @@ public:
changed.emit();
}
public:
/* ===== Conversions ===== */
/**
* Returns a copy of this observable_list converted to an STL list
* object.
* @return Returns a copy of the STL list.
**/
std::list<T, Allocator> to_list() const
{
return list;
}
public:
/* ===== Signals ===== */