@@ -36,11 +36,11 @@ template <class Value> class Set
3636 typedef typename Super::const_iterator const_iterator;
3737 typedef typename Super::const_reverse_iterator const_reverse_iterator;
3838
39- Set<Value> ()
39+ Set ()
4040 {
4141 }
4242
43- Set<Value> ( const std::initializer_list<Value> &initializerList )
43+ Set ( const std::initializer_list<Value> &initializerList )
4444 : _container( initializerList )
4545 {
4646 }
@@ -50,7 +50,7 @@ template <class Value> class Set
5050 _container.insert ( value );
5151 }
5252
53- void insert ( const Set<Value> &other )
53+ void insert ( const Set &other )
5454 {
5555 for ( auto it = other.begin (); it != other.end (); ++it )
5656 _container.insert ( *it );
@@ -62,43 +62,43 @@ template <class Value> class Set
6262 _container.insert ( *it );
6363 }
6464
65- void operator +=( const Set<Value> &other )
65+ void operator +=( const Set &other )
6666 {
6767 insert ( other );
6868 }
6969
70- Set<Value> operator +( const Set<Value> &other )
70+ Set operator +( const Set &other )
7171 {
72- Set<Value> result = *this ;
72+ Set result = *this ;
7373 result.insert ( other );
7474 return result;
7575 }
7676
77- bool operator ==( const Set<Value> &other ) const
77+ bool operator ==( const Set &other ) const
7878 {
7979 return _container == other._container ;
8080 }
8181
82- bool operator !=( const Set<Value> &other ) const
82+ bool operator !=( const Set &other ) const
8383 {
8484 return _container != other._container ;
8585 }
8686
87- bool operator <( const Set<Value> &other ) const
87+ bool operator <( const Set &other ) const
8888 {
8989 return _container < other._container ;
9090 }
9191
92- static bool containedIn ( const Set<Value> &one, const Set<Value> &two )
92+ static bool containedIn ( const Set &one, const Set &two )
9393 // Is one contained in two?
9494 {
95- return Set<Value> ::difference ( one, two ).empty ();
95+ return Set::difference ( one, two ).empty ();
9696 }
9797
98- static Set<Value> difference ( const Set<Value> &one, const Set<Value> &two )
98+ static Set difference ( const Set &one, const Set &two )
9999 // Elements that appear in one, but do not appear in two.
100100 {
101- Set<Value> difference;
101+ Set difference;
102102 std::set_difference ( one.begin (),
103103 one.end (),
104104 two.begin (),
@@ -107,9 +107,9 @@ template <class Value> class Set
107107 return difference;
108108 }
109109
110- static Set<Value> intersection ( const Set<Value> &one, const Set<Value> &two )
110+ static Set intersection ( const Set &one, const Set &two )
111111 {
112- Set<Value> intersection;
112+ Set intersection;
113113 std::set_intersection ( one.begin (),
114114 one.end (),
115115 two.begin (),
0 commit comments