Sections use vector instead of a map
Uses brute-force search, but only ever for small vectors
This commit is contained in:
1 parent
c4ba6757d9
commit
6f2343bf64
2 files changed
+14
-16
No files matched your search
@@ -51,18 +51,14 @@ namespace Catch {
|
||||
typename ContainerT::const_iterator it = container.begin();
|
||||
typename ContainerT::const_iterator itEnd = container.end();
|
||||
for(; it != itEnd; ++it )
|
||||
{
|
||||
delete *it;
|
||||
}
|
||||
}
|
||||
template<typename AssociativeContainerT>
|
||||
inline void deleteAllValues( AssociativeContainerT& container ) {
|
||||
typename AssociativeContainerT::const_iterator it = container.begin();
|
||||
typename AssociativeContainerT::const_iterator itEnd = container.end();
|
||||
for(; it != itEnd; ++it )
|
||||
{
|
||||
delete it->second;
|
||||
}
|
||||
}
|
||||
|
||||
template<typename ContainerT, typename Function>
|
||||
|
||||
Reference in new issue
Block a user