Boost logo

Boost Users :

Subject: Re: [Boost-users] [range] Best way to construct a std::set from a range?
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-03-04 00:37:37


On Wed, Mar 3, 2010 at 11:43 AM, Gabriel Redner <gredner_at_[hidden]> wrote:
> Sure, that works - I was hoping for something that fits naturally on
> one line, though.

Well, you could use phoenix2 for a one-liner:
  assign(arg1, begin(arg2), end(arg2))(s, MakeRange(args))


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