Update of /cvsroot/boost/boost/libs/fusion/doc
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5464
Modified Files:
fusion.qbk sequences.qbk
Log Message:
variant and boost tuple adaptor docs
Index: fusion.qbk
===================================================================
RCS file: /cvsroot/boost/boost/libs/fusion/doc/fusion.qbk,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fusion.qbk 22 Aug 2006 15:56:49 -0000 1.1
+++ fusion.qbk 21 Nov 2006 22:49:05 -0000 1.2
@@ -32,6 +32,8 @@
[def __boost_any__ [EMAIL
PROTECTED]://boost.org/doc/html/any.html Boost.Any]]
[def __new_iterator_concepts__ [EMAIL
PROTECTED]://boost.org/libs/iterator/doc/new-iter-concepts.html New Iterator
Concepts]]
[def __boost_array_library__ [EMAIL
PROTECTED]://www.boost.org/doc/html/array.html Boost.Array Library]]
+[def __boost_variant_library__ [EMAIL
PROTECTED]://www.boost.org/doc/html/variant.html Boost.Variant Library]]
+[def __boost_tuple_library__ [EMAIL
PROTECTED]://www.boost.org/libs/tuple/doc/tuple_users_guide.html Boost.Tuple
Library]]
[def __boost_ref__ [EMAIL
PROTECTED]://www.boost.org/doc/html/ref.html Boost.Ref]]
[def __boost_ref_call__ [EMAIL
PROTECTED]://www.boost.org/doc/html/ref.html `ref`]]
[def __std_pair_doc__ [EMAIL
PROTECTED]://www.sgi.com/tech/stl/pair.html `std::pair`]]
Index: sequences.qbk
===================================================================
RCS file: /cvsroot/boost/boost/libs/fusion/doc/sequences.qbk,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- sequences.qbk 22 Aug 2006 15:56:49 -0000 1.1
+++ sequences.qbk 21 Nov 2006 22:49:05 -0000 1.2
@@ -1326,6 +1326,58 @@
[endsect]
+[section boost::tuple]
+This module provides adapters for `boost::tuple`. Including the module
+header makes `boost::tuple` a fully conforming __forward_sequence__.
+
+[heading Header]
+
+ #include <boost/fusion/sequence/adapted/boost_tuple.hpp>
+
+[heading Model of]
+
+* __forward_sequence__
+
+[heading Example]
+
+ boost::tuple<int,std::string> example_tuple(101, "hello");
+ std::cout << *boost::fusion::begin(example_tuple) << '\n';
+ std::cout << *boost::fusion::next(boost::fusion::begin(example_tuple)) <<
'\n';
+
+[heading See also]
+
+__boost_tuple_library__
+
+[endsect]
+
+[section boost::variant]
+This module provides adapters for `boost::variant`. Including the module
+header makes `boost::variant` a fully conforming __forward_sequence__.
+The variant acts as a sequence of the types that can be contained in the
variant.
+Accessing types not currently stored int the variant will lead to the variant
+being populated with a default constructed value of that type.
+
+[heading Header]
+
+ #include <boost/fusion/sequence/adapted/variant.hpp>
+
+[heading Model of]
+
+* __forward_sequence__
+
+[heading Example]
+
+ boost::variant<int,std::string> example_variant = 101;
+ std::cout << example_variant << '\n';
+ *boost::fusion::find<std::string>(example_variant) = "hello";
+ std::cout << example_variant << '\n';
+
+[heading See also]
+
+__boost_variant_library__
+
+[endsect]
+
[endsect]
[section Intrinsics]
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs