|
Boost Users : |
Subject: Re: [Boost-users] [Range] Generating a singular range.
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-12-17 08:22:49
On 12/14/2011 07:00 PM, Robert Jones wrote:
> Hi All
>
> Is there an easy and obvious way to construct a single element range
> from a value_type of that range?
boost::list_of(a)
boost::ref_list_of(a);
boost::cref_list_of(a);
also works for multiple elements
boost::list_of(a)(b)(c);
etc.
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