mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-01 17:37:57 +00:00
Use bulk vector::insert rather than back_inserter
This commit is contained in:
parent
08b597b3e2
commit
4dc06bdb70
2 changed files with 4 additions and 6 deletions
|
@ -10,7 +10,6 @@
|
|||
|
||||
#include "catch_context.h"
|
||||
|
||||
#include <iterator>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <stdlib.h>
|
||||
|
@ -124,7 +123,7 @@ public:
|
|||
private:
|
||||
|
||||
void move( CompositeGenerator& other ) {
|
||||
std::copy( other.m_composed.begin(), other.m_composed.end(), std::back_inserter( m_composed ) );
|
||||
m_composed.insert( m_composed.end(), other.m_composed.begin(), other.m_composed.end() );
|
||||
m_totalSize += other.m_totalSize;
|
||||
other.m_composed.clear();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue