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.
2 parents 1dbc67a + 55acf09 commit 37671faCopy full SHA for 37671fa
include/geode/basic/algorithm.hpp
@@ -33,6 +33,18 @@
33
34
namespace geode
35
{
36
+ template < typename Container >
37
+ void concatenate( Container& container, const Container& values )
38
+ {
39
+ absl::c_copy( values, std::back_inserter( container ) );
40
+ }
41
+
42
43
+ void concatenate( Container& container, Container&& values )
44
45
+ absl::c_move( std::move( values ), std::back_inserter( container ) );
46
47
48
/*!
49
* Delete some elements from a given vector.
50
* @param[in] to_delete Vector of the same size than values. If to_delete[i]
0 commit comments