sources/list.h

changeset 180
2e7225dbd9b2
parent 179
7fc34735178e
child 181
e254398fcc7c
--- a/sources/list.h	Wed Jan 27 13:02:51 2021 +0200
+++ b/sources/list.h	Wed Jan 27 13:08:51 2021 +0200
@@ -346,24 +346,6 @@
 //
 
 template<typename T>
-class List : public Container<T, std::deque<T> >
-{
-public:
-	typedef Container<T, std::deque<T> > Super;
-
-	List(){}
-
-	List (int numvalues) :
-		Super (numvalues) {}
-
-	List (const Super& other) :
-		Super (other) {}
-};
-
-// -------------------------------------------------------------------------------------------------
-//
-
-template<typename T>
 class Vector : public Container<T, std::vector<T> >
 {
 public:
@@ -399,24 +381,8 @@
 	}
 };
 
-class ByteArray : public Vector<unsigned char>
-{
-public:
-	ByteArray(std::initializer_list<unsigned char> initializerList);
-
-	template<typename ...Args>
-	ByteArray(Args&& ...args);
-
-	class String quote() const;
-};
-
-/*!
- * \brief Constructs a byte array by passing all arguments to Vector<unsigned char>'s constructor.
- * \param args Arguments to pass.
- */
-template<typename ...Args>
-ByteArray::ByteArray(Args&& ...args) :
-    Vector<unsigned char>(args...) {}
+using ByteArray = std::vector<unsigned char>;
+class String quote(const ByteArray& bytes);
 
 template<typename T>
 T splice(const T& container, int start, int end, int step = 1)

mercurial