|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-02-15 10:19:55
Joel de Guzman <joel_at_[hidden]> writes:
> Larry Evans wrote:
>> On 02/15/2005 05:12 AM, Joel de Guzman wrote:
>> Is the above insert a non-member function with signature:
>> template<typename T1, ...,typename Tn>
>> void insert(fusion::set<T1,,,Tn>& s, Tk e);
>> for some k in 1...n, and the above insert places element e
>> in s?
>
> Ehm...
>
> Yes, it is a non-member function. No, it does not mutate s.
> It does return another set. It is purely functional (no side-
> effects).
>
> Isn't the MPL doc clear enough?
> http://www.boost.org/libs/mpl/doc/refmanual/set.html
Patience, Joel. The whole functional thing is a bit unexpected in the
runtime world for many C++ programmers.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk