1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __clang_analyzer__ // It's too hard to analyze.
#include "GatherUtils.h"
#include "Selectors.h"
#include "Algorithms.h"
namespace DB::GatherUtils
{
namespace
{
struct ArrayResizeConstant : public ArrayAndValueSourceSelectorBySink<ArrayResizeConstant>
{
template <typename ArraySource, typename ValueSource, typename Sink>
static void selectArrayAndValueSourceBySink(
ArraySource && array_source, ValueSource && value_source, Sink && sink, ssize_t size)
{
resizeConstantSize(array_source, value_source, sink, size);
}
};
}
void resizeConstantSize(IArraySource & array_source, IValueSource & value_source, IArraySink & sink, ssize_t size)
{
ArrayResizeConstant::select(sink, array_source, value_source, size);
}
}
#endif
|