summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/list.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/list.h b/common/list.h
index cf429e5..2ad41fd 100644
--- a/common/list.h
+++ b/common/list.h
@@ -9,6 +9,13 @@
template<class T, class B = std::vector<T> >
class List : public B {
public:
+ //! Default constructor.
+ List() : B() {}
+
+ //! Iterator constructor.
+ template <class InputIterator>
+ List(InputIterator first, InputIterator last) : B(first, last) {}
+
//! Sort the list.
void sort() {
std::sort(B::begin(), B::end());