Adobe Source Libraries 2.0.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
append.hpp
Go to the documentation of this file.
1/*
2 Copyright 2024 Adobe
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5*/
6/**************************************************************************************************/
7
8#ifndef ADOBE_ALGORITHM_APPEND_HPP
9#define ADOBE_ALGORITHM_APPEND_HPP
10
11#include <iterator>
12
13/**************************************************************************************************/
14
15namespace adobe {
16
17/**************************************************************************************************/
18
21template <class T, class R>
22inline auto append(T& c, const R& r) {
23 return c.insert(std::end(c), std::begin(r), std::end(r));
24}
25
26/**************************************************************************************************/
27
28} // namespace adobe
29
30/**************************************************************************************************/
31
32#endif
auto append(T &c, const R &r)
Definition append.hpp:22