Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::bind1st is deprecated [2]. The function template std::bind provides a better solution [2].
std::bind1st is a binder to call a binary function with the value bound as first argument. If the second argument needs to be bound, use std::bind2nd instead.
The use of std::bind1st is clearest in division:
Reciprocal replaces all elements by their reprocicals, that is replaces all elements called 'x' by '1.0/x'.
#include <algorithm> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml