forked from boostorg/iterator
Removed use of std::unary_function from docs example.
This commit is contained in:
@ -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:
|
A non-generic implementation of `zip_func` could look as follows:
|
||||||
|
|
||||||
|
|
||||||
struct zip_func :
|
struct zip_func
|
||||||
public std::unary_function<const boost::tuple<const double&, const int&>&, void>
|
|
||||||
{
|
{
|
||||||
|
using result_type = void;
|
||||||
|
|
||||||
void operator()(const boost::tuple<const double&, const int&>& t) const
|
void operator()(const boost::tuple<const double&, const int&>& t) const
|
||||||
{
|
{
|
||||||
m_f0(t.get<0>());
|
m_f0(t.get<0>());
|
||||||
|
Reference in New Issue
Block a user