can inner_product not be applied to a map.
I have the following code:
std::map<class A, class B> s;
std::map<class A, class B>::const_iterator vit=s.begin();
long double x = std::inner_product(vit->first,vit->second,vit->first,0.0);
but I get a no-matching function to inner_product error.
It certainly can be applied to maps, given creatively chosen functors, but
inner_productexpects iterators, whilevit->firstis aconst Aandvit->secondis aB.For example,