We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e52df commit 50bdd15Copy full SHA for 50bdd15
include/geode/basic/algorithm.hpp
@@ -36,7 +36,13 @@ namespace geode
36
template < typename Container >
37
void concatenate( Container& container, const Container& values )
38
{
39
- container.insert( container.end(), values.begin(), values.end() );
+ absl::c_copy( values, std::back_inserter( container ) );
40
+ }
41
+
42
+ template < typename Container >
43
+ void concatenate( Container& container, Container&& values )
44
+ {
45
+ absl::c_move( values, std::back_inserter( container ) );
46
}
47
48
/*!
0 commit comments