diff --git a/doc/refmanual/set.html b/doc/refmanual/set.html index daab973..a17e5de 100644 --- a/doc/refmanual/set.html +++ b/doc/refmanual/set.html @@ -12,7 +12,7 @@
set is a variadic, associative, extensible sequence of types that
@@ -52,7 +52,8 @@ A
In the following table, s is an instance of set, pos is an iterator into s,
-and x, k, and t1,t2,... tn are arbitrary types. Basic set invariants: Constructing a set from a list of potentially non-unique types: Sequences, Variadic Sequence, Associative Sequence, Extensible Associative Sequence, set_c, map, vectorExpression semantics
Example
+
typedef set< int,long,double,int_<5> > s;
@@ -164,8 +166,18 @@ typedef set< int,long,double,BOOST_MPL_ASSERT(( is_same< at<s,int_<5> >::type, int_<5> > ));
BOOST_MPL_ASSERT(( is_same< at<s,char>::type, void_ > ));
+
+typedef fold<
+ vector<int,int,long,long>
+ , set0<>
+ , insert<_1,_2>
+ >::type s;
+
+BOOST_MPL_ASSERT_RELATION( size<s>::value, ==, 2 );
+
See also
-