| 330 | // field. |
| 331 | template <typename IteratorType> |
| 332 | void SetFeatureValues(IteratorType first, IteratorType last, Feature* feature) { |
| 333 | using FeatureType = typename internal::FeatureTrait< |
| 334 | typename std::iterator_traits<IteratorType>::value_type>::Type; |
| 335 | ClearFeatureValues<FeatureType>(feature); |
| 336 | AppendFeatureValues(first, last, feature); |
| 337 | } |
| 338 | |
| 339 | // Clears the feature's repeated field (int64, float, or string). Copies all |
| 340 | // elements from the initializer list into the feature's repeated field. |