1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 16:02:43 +01:00

GitRepo::fetch(): Cleanup

(cherry picked from commit bd10b859f7)
This commit is contained in:
Eelco Dolstra 2025-01-22 17:42:52 +01:00 committed by Mergify
parent 5d2f26e3f6
commit 08d4e67e84
2 changed files with 17 additions and 8 deletions

View file

@ -274,6 +274,17 @@ std::optional<typename T::value_type> pop(T & c)
}
/**
* Append items to a container. TODO: remove this once we can use
* C++23's `append_range()`.
*/
template<class C, typename T>
void append(C & c, std::initializer_list<T> l)
{
c.insert(c.end(), l.begin(), l.end());
}
template<typename T>
class Callback;