|
Boost : |
From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-09-10 15:44:13
"Jonathan Turkanis" <technews_at_[hidden]> wrote in message
news:cht2bi$jo7$1_at_sea.gmane.org...
>
This was just a dumb example, but I may as well correct it:
> struct printer : std::unary_function<int, void> {
> typedef int result_type;
> int operator() (int n) const { std::cout << n; }
int operator() (int n) const { std::cout << n; return 0; }
> };
Jonathan
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk