|
Boost-Commit : |
From: eric_at_[hidden]
Date: 2008-03-03 14:44:54
Author: eric_niebler
Date: 2008-03-03 14:44:54 EST (Mon, 03 Mar 2008)
New Revision: 43476
URL: http://svn.boost.org/trac/boost/changeset/43476
Log:
add Map Assign example to documentation
Text files modified:
trunk/libs/xpressive/proto/doc/calculator.qbk | 2 +-
trunk/libs/xpressive/proto/doc/examples.qbk | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
Modified: trunk/libs/xpressive/proto/doc/calculator.qbk
==============================================================================
--- trunk/libs/xpressive/proto/doc/calculator.qbk (original)
+++ trunk/libs/xpressive/proto/doc/calculator.qbk 2008-03-03 14:44:54 EST (Mon, 03 Mar 2008)
@@ -19,7 +19,7 @@
[heading Defining Terminals]
The first order of business is to define the placeholders `_1` and `_2`. For
-that, we'll use the _terminal_ metafuntion.
+that, we'll use the _terminal_ metafunction.
// Define some placeholder types
struct placeholder1 {};
Modified: trunk/libs/xpressive/proto/doc/examples.qbk
==============================================================================
--- trunk/libs/xpressive/proto/doc/examples.qbk (original)
+++ trunk/libs/xpressive/proto/doc/examples.qbk 2008-03-03 14:44:54 EST (Mon, 03 Mar 2008)
@@ -15,6 +15,7 @@
[import ../example/tarray.cpp]
[import ../example/vec3.cpp]
[import ../example/vector.cpp]
+[import ../example/map_assign.cpp]
[import ../example/futures.cpp]
[/===============]
@@ -149,6 +150,19 @@
[endsect]
+[/=======================================================]
+[section:map_assign Map Assign: An Intermediate Transform]
+[/=======================================================]
+
+A demonstration of how to implement `map_list_of()` from the Boost.Assign
+library using Proto. `map_list_assign()` is used to conveniently initialize a
+`std::map<>`. By using Proto, we can avoid any dynamic allocation while
+building the intermediate representation.
+
+[MapAssign]
+
+[endsect]
+
[/===========================================================]
[section:future_group Future Group: A More Advanced Transform]
[/===========================================================]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk