Removed use of std::unary_function from docs example.

This commit is contained in:
Andrey Semashev 2025-02-07 13:46:19 +03:00
parent a7150173ed
commit c89e2b325a

View File

@ -52,9 +52,10 @@ These two iterations can now be replaced with a single one as follows:
A non-generic implementation of `zip_func` could look as follows:
struct zip_func :
public std::unary_function<const boost::tuple<const double&, const int&>&, void>
struct zip_func
{
using result_type = void;
void operator()(const boost::tuple<const double&, const int&>& t) const
{
m_f0(t.get<0>());