
15 Feb
2005
15 Feb
'05
3:19 p.m.
Joel de Guzman <joel@boost-consulting.com> 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