blob: 1962ddd435972aa382bceafff6e82bfb4123e3c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/util/array.h>
#include <vector>
#include <cstdint>
namespace vespalib {
template <typename T>
Serializer &
Serializer::operator << (const std::vector<T> & v) {
uint32_t sz(v.size());
put(sz);
for(size_t i(0); i < sz; i++) {
(*this) << v[i];
}
return *this;
}
}
|