mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
10 lines
331 B
C++
10 lines
331 B
C++
#pragma once
|
|
|
|
/// Extend @p to by moving elements from @p from to @p to end
|
|
/// @return @p to iterator to first of moved elements.
|
|
template <class To, class From>
|
|
typename To::iterator moveExtend(To & to, From && from)
|
|
{
|
|
return to.insert(to.end(), std::make_move_iterator(from.begin()), std::make_move_iterator(from.end()));
|
|
}
|