| 193 | |
| 194 | template <typename DType> |
| 195 | void TypedEncoder<DType>::Put(const std::vector<T>& src, int num_values) { |
| 196 | if (num_values == -1) { |
| 197 | num_values = static_cast<int>(src.size()); |
| 198 | } |
| 199 | Put(src.data(), num_values); |
| 200 | } |
| 201 | |
| 202 | template <> |
| 203 | inline void TypedEncoder<BooleanType>::Put(const std::vector<bool>& src, int num_values) { |