Boost logo

Boost :

From: John Torjo (john.lists_at_[hidden])
Date: 2004-09-23 14:50:22


>
> More sophisticated constructs like the list_ would help in outputting
> container structures:
>
> vector<int> v = ...;
> generate(list_(',', int_)[phoenix::const_(v)], someoutputiter);
>
> outputs a comma separeted list of integers, and so on.
>

Hmmm. I think the sytax is quite hard to understand/use.

Best,
John

-- 
John Torjo
-- john_at_[hidden]
Contributing editor, C/C++ Users Journal
-- "Win32 GUI Generics" -- generics & GUI do mix, after all
-- http://www.torjo.com/win32gui/
-- v1.4 - save_dlg - true binding of your data to UI controls!
    + easily add validation rules (win32gui/examples/smart_dlg)

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk