diff options
-rw-r--r-- | Source/cmAlgorithms.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmAlgorithms.h b/Source/cmAlgorithms.h index 0980416..d1e32b0 100644 --- a/Source/cmAlgorithms.h +++ b/Source/cmAlgorithms.h @@ -171,6 +171,18 @@ void cmDeleteAll(Range const& r) ContainerAlgorithms::DefaultDeleter<Range>()); } +template <typename T, typename Range> +void cmAppend(std::vector<T>& v, Range const& r) +{ + v.insert(v.end(), r.begin(), r.end()); +} + +template <typename T, typename InputIt> +void cmAppend(std::vector<T>& v, InputIt first, InputIt last) +{ + v.insert(v.end(), first, last); +} + template <typename Range> std::string cmJoin(Range const& r, const char* delimiter) { |