diff --git a/maths.hpp b/maths.hpp index c4f31c7f..a145027e 100644 --- a/maths.hpp +++ b/maths.hpp @@ -544,6 +544,13 @@ namespace cruft { return sum; } + template + typename ContainerT::value_type + sum (ContainerT const &src) + { + return sum (src.begin (), src.end ()); + } + //------------------------------------------------------------------------- template