From d791b3f756f735474ea0915dcc4610df9ecf2f6e Mon Sep 17 00:00:00 2001
From: Vesa Karvonen
Date: Fri, 1 Feb 2002 11:40:52 +0000
Subject: [PATCH] Working on docs
[SVN r12619]
---
include/boost/preprocessor/list/adt.hpp | 43 ++++---------------
include/boost/preprocessor/list/fold_left.hpp | 7 ++-
.../preprocessor/list/for_each_product.hpp | 4 +-
include/boost/preprocessor/list/to_tuple.hpp | 7 ++-
4 files changed, 22 insertions(+), 39 deletions(-)
diff --git a/include/boost/preprocessor/list/adt.hpp b/include/boost/preprocessor/list/adt.hpp
index 108086b..56475d0 100644
--- a/include/boost/preprocessor/list/adt.hpp
+++ b/include/boost/preprocessor/list/adt.hpp
@@ -15,9 +15,12 @@
/** This header defines the fundamental list operations.
-NOTE: The internal representation of lists is hidden. Although there
-aren't compelling reasons to change the representation, you should avoid
-writing code that depends on the internal representation details.
+Note
+
+ - The internal representation of lists is hidden. Although there aren't
+ compelling reasons to change the representation, you should avoid
+ writing code that depends on the internal representation details.
+
*/
#include
@@ -47,35 +50,17 @@ BOOST_PP_LIST_CONS(). For example,
*/
#define BOOST_PP_LIST_CONS(H,T) (H,T,1)
-/** List nil constructor.
-
-See
-
-*/
+/** List nil constructor.
*/
#define BOOST_PP_LIST_NIL (_,_,0)
-/** Expands to 1 if the list is not nil and 0 otherwise.
-
-See
-
- - BOOST_PP_LIST_IS_NIL()
-
-*/
+/** Expands to 1 if the list is not nil and 0 otherwise.
*/
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406
# define BOOST_PP_LIST_IS_CONS(L) BOOST_PP_TUPLE_ELEM(3,2,L)
#else
# define BOOST_PP_LIST_IS_CONS(L) BOOST_PP_TUPLE3_ELEM2 L
#endif
-/** Expands to 1 if the list is nil and 0 otherwise.
-
-See
-
- - BOOST_PP_LIST_IS_CONS()
-
-*/
+/** Expands to 1 if the list is nil and 0 otherwise.
*/
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406
# define BOOST_PP_LIST_IS_NIL(L) BOOST_PP_NOT(BOOST_PP_TUPLE_ELEM(3,2,L))
#else
@@ -91,11 +76,6 @@ BOOST_PP_LIST_CONS(). For example,
expands to 1.
-
-See
-
*/
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406
# define BOOST_PP_LIST_FIRST(L) BOOST_PP_TUPLE_ELEM(3,0,L)
@@ -112,11 +92,6 @@ BOOST_PP_LIST_CONS(). For example,
expands to a list containing 2, 3, 4 and 5.
-
-See
-
- - BOOST_PP_LIST_FIRST()
-
*/
#if !defined(BOOST_NO_COMPILER_CONFIG) && defined(__MWERKS__) && __MWERKS__ <= 0x2406
# define BOOST_PP_LIST_REST(L) BOOST_PP_TUPLE_ELEM(3,1,L)
diff --git a/include/boost/preprocessor/list/fold_left.hpp b/include/boost/preprocessor/list/fold_left.hpp
index 595d346..ae079cf 100644
--- a/include/boost/preprocessor/list/fold_left.hpp
+++ b/include/boost/preprocessor/list/fold_left.hpp
@@ -34,8 +34,11 @@
)
-Note that folding, or accumulation, is a very general pattern of computation.
-Most list operations can be implemented in terms of folding.
+Note
+
+ - Folding, or accumulation, is a very general pattern of computation.
+ Most list operations can be implemented in terms of folding.
+
See
diff --git a/include/boost/preprocessor/list/for_each_product.hpp b/include/boost/preprocessor/list/for_each_product.hpp
index 7b9cacd..75fef01 100644
--- a/include/boost/preprocessor/list/for_each_product.hpp
+++ b/include/boost/preprocessor/list/for_each_product.hpp
@@ -22,9 +22,11 @@
This macro is useful for generating code to avoid combinatorial explosion.
+Legend
- LL is a list of lists.
-
- X is an element of the cartesian product of the lists LL.
+
- X is a list of the elements of an element of the cartesian product of
+ the lists LL.
Example
diff --git a/include/boost/preprocessor/list/to_tuple.hpp b/include/boost/preprocessor/list/to_tuple.hpp
index 94f37ba..4cbfb83 100644
--- a/include/boost/preprocessor/list/to_tuple.hpp
+++ b/include/boost/preprocessor/list/to_tuple.hpp
@@ -26,8 +26,11 @@
expands to (A,B,C).
-NOTE: The supported size of the list being converted to a tuple is limited by
-BOOST_PP_LIMIT_MAG rather than BOOST_PP_LIMIT_TUPLE.
+Note
+
+ - The supported size of the list being converted to a tuple is limited by
+ BOOST_PP_LIMIT_MAG rather than BOOST_PP_LIMIT_TUPLE.
+
Uses