Update of /cvsroot/boost/boost/libs/property_map/doc
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18381
Modified Files:
dynamic_property_map.rst
Log Message:
Added documentation for "ignore_other_properties".
Index: dynamic_property_map.rst
===================================================================
RCS file: /cvsroot/boost/boost/libs/property_map/doc/dynamic_property_map.rst,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- dynamic_property_map.rst 2 May 2007 20:49:29 -0000 1.2
+++ dynamic_property_map.rst 20 Jun 2007 16:37:32 -0000 1.3
@@ -203,7 +203,9 @@
>& fn)
A ``dynamic_properties`` object can be constructed with a function object
-that, when called, creates a new property map. If an attempt is made
+that, when called, creates a new property map. The library provides the
+``ignore_other_properties`` function object, which lets the
``dynamic_properties`` object ignore any properties that it hasn't been
prepared to record.
+If an attempt is made
to ``put`` a key-value pair to a nonexistent ``dynamic_properties`` key,
then this function is called with the ``dynamic_properties`` key and the
intended property key and value . If ``dynamic_properties`` is
@@ -264,6 +266,17 @@
::
+ std::auto_ptr<boost::dynamic_property_map>
+ ignore_other_properties(const std::string&,
+ const boost::any&,
+ const boost::any&)
+
+When passed to the ``dynamic_properties`` constructor, this function
+allows the ``dynamic_properties`` object to disregard attempts to put
+values to unknown keys without signaling an error.
+
+::
+
template<typename Key, typename Value>
bool put(const std::string& name, dynamic_properties& dp, const Key& key,
const Value& value)
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs