# Copyright 2001, 2002 Dave Abrahams
# Copyright 2003 Vladimir Prus
# Distributed under the Boost Software License, Version 1.0.
-# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
class set
{
rule __init__ ( )
{
- }
-
+ }
+
rule add ( elements * )
{
for local e in $(elements)
{
$(e) = 1 ;
self.result += $(e) ;
- }
- }
- }
-
+ }
+ }
+ }
+
rule contains ( element )
{
return $($(element)) ;
}
-
+
rule list ( )
{
return $(self.result) ;
- }
+ }
}