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.