|
Boost : |
From: nbecker_at_[hidden]
Date: 2001-12-06 10:16:13
We can use more functions related to complex types. Here's one handy
one:
template<typename func, typename flt>
inline std::complex<flt> ComplexApply (func f, std::complex<flt> x) {
return std::complex<flt> (f (real (x)), f (imag (x)));
}
Can bind do this?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk