11 #ifndef __stir_convert_range_H__ 12 #define __stir_convert_range_H__ 39 template <
class InputIteratorT,
class T2,
class scaleT>
41 const InputIteratorT& begin,
42 const InputIteratorT& end,
43 const NumericInfo<T2> info_for_out_type);
60 template <
class OutputIteratorT,
class InputIteratorT,
class scaleT>
63 const InputIteratorT& in_begin,
64 const InputIteratorT& in_end);
implementation of stir::convert_range
void find_scale_factor(scaleT &scale_factor, const InputIteratorT &begin, const InputIteratorT &end, const NumericInfo< T2 > info_for_out_type)
A function that finds a scale factor to use when converting data to a new type.
Definition: convert_range.inl:92
void convert_range(const OutputIteratorT &out_begin, scaleT &scale_factor, const InputIteratorT &in_begin, const InputIteratorT &in_end)
Converts the data in the input range to the output range (with elements of different types) such that...
Definition: convert_range.inl:129
basic configuration include file