Changeset 4039 in vbox
- Timestamp:
- Aug 6, 2007 12:28:27 PM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 23474
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/Collection.h
r3668 r4039 206 206 207 207 // public initializer/uninitializer for internal purposes only 208 208 209 void init (const List &l) 209 210 { 210 211 // create a copy of the list 211 212 vec = Vector (l.begin(), l.end()); 213 } 214 215 template <class Key> 216 void init (const std::map <Key, CollItem> &m) 217 { 218 // create a copy of the map 219 for (std::map <Key, CollItem>::const_iterator it = m.begin(); 220 it != m.end(); ++ it) 221 vec.push_back (it->second); 212 222 } 213 223
Note:
See TracChangeset
for help on using the changeset viewer.