Commit b58458d 1 parent 40ebcac commit b58458d Copy full SHA for b58458d
File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,12 @@ template <typename Data> class Array
10
10
}
11
11
12
12
// copy constructor
13
- template <typename T>
14
- Array (const Array<T> &a)
13
+ Array (const Array &a)
15
14
{
16
15
}
17
16
18
17
// assignment operator
19
- template <typename T>
20
- Array &operator =(const Array<T> &a)
18
+ Array &operator =(const Array &a)
21
19
{
22
20
return *this ;
23
21
}
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ template <typename Data> class List
20
20
}
21
21
22
22
// copy constructor
23
- template <typename T>
24
- List (const List<T> &a)
23
+ List (const List &a)
25
24
{
26
25
}
27
26
28
27
// assignment operator
29
- template <typename T>
30
- List &operator =(const List<T> &a)
28
+ List &operator =(const List &a)
31
29
{
32
30
return *this ;
33
31
}
Original file line number Diff line number Diff line change @@ -12,14 +12,12 @@ template <typename Data> class Vector
12
12
}
13
13
14
14
// copy constructor
15
- template <typename T>
16
- Vector (const Vector<T> &a)
15
+ Vector (const Vector &a)
17
16
{
18
17
}
19
18
20
19
// assignment operator
21
- template <typename T>
22
- Vector &operator =(const Vector<T> &a)
20
+ Vector &operator =(const Vector &a)
23
21
{
24
22
return *this ;
25
23
}
You can’t perform that action at this time.
0 commit comments