mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
modify namespace result_of -> results
support C++14 type_traits
This commit is contained in:
parent
d386893a74
commit
bf0c7021cf
350 changed files with 2628 additions and 1912 deletions
|
@ -9,7 +9,7 @@
|
|||
#define SPROUT_NUMERIC_DFT_FIXED_SPECTRUM_HPP
|
||||
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/algorithm/fixed/result_of.hpp>
|
||||
#include <sprout/algorithm/fixed/results.hpp>
|
||||
#include <sprout/numeric/dft/fixed/amplitude_spectrum.hpp>
|
||||
|
||||
namespace sprout {
|
||||
|
@ -18,13 +18,13 @@ namespace sprout {
|
|||
// spectrum
|
||||
//
|
||||
template<typename InputIterator, typename Result>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Result>::type
|
||||
spectrum(InputIterator first, InputIterator last, Result const& result) {
|
||||
return sprout::fixed::amplitude_spectrum(first, last, result);
|
||||
}
|
||||
|
||||
template<typename Result, typename InputIterator>
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::result_of::algorithm<Result>::type
|
||||
inline SPROUT_CONSTEXPR typename sprout::fixed::results::algorithm<Result>::type
|
||||
spectrum(InputIterator first, InputIterator last) {
|
||||
return sprout::fixed::amplitude_spectrum<Result>(first, last);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue