#ifndef SPROUT_ITERATOR_AMPLITUDE_SPECTRUM_ITERATOR_HPP #define SPROUT_ITERATOR_AMPLITUDE_SPECTRUM_ITERATOR_HPP #include #include #include #include namespace sprout { // // amplitude_value // template class amplitude_value { public: typedef typename T::value_type result_type; typedef T argument_type; public: SPROUT_CONSTEXPR amplitude_value() {} SPROUT_CONSTEXPR typename T::value_type operator()(T const& value) const { return sprout::amplitude_spectrum_value(value); } }; // // make_amplitude_spectrum_iterator // template inline SPROUT_CONSTEXPR sprout::transform_iterator::value_type>, Iterator> make_amplitude_spectrum_iterator(Iterator it) { return sprout::transform_iterator::value_type>, Iterator>( it, sprout::amplitude_value::value_type>() ); } } // namespace sprout #endif // #ifndef SPROUT_ITERATOR_AMPLITUDE_SPECTRUM_ITERATOR_HPP