Boost logo

Boost Users :

Subject: [Boost-users] [Range] Adaptors
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2011-01-05 11:05:56


I might be asking for the impossible here, but given the lovely adaptor
syntax, eg

std::vector<int> vec;
boost::copy( vec | boost::adaptors::reversed
                 | boost::adaptors::uniqued,
             std::ostream_iterator<int>(std::cout) );

I notice it still uses the function call notation in the outermost
operation( boost::copy() ),
can it be written to eliminate function call syntax completely, say
something like

vec | boost::adaptors::reversed | boost::adaptors::uniqued |
boost::adaptors::copy( std::ostream_iterator<int>(std::cout) );

or even

vec | boost::adaptors::reversed | boost::adaptors::uniqued |
std::ostream_iterator<int>(std::cout);

Thx,

- Rob.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net