From 2ef34bca50475079be5dff2488a92b71185531d6 Mon Sep 17 00:00:00 2001
From: Nina Dzugasova <dzugasova.nina@gmail.com>
Date: Thu, 6 Dec 2018 14:01:46 +0100
Subject: [PATCH] Added ListExample.

---
 src/Examples/CMakeLists.txt               |  4 ++++
 src/Examples/ConfigDescriptionExample.cpp |  2 +-
 src/Examples/ListExample.cpp              | 14 +++++++++++++-
 3 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/Examples/CMakeLists.txt b/src/Examples/CMakeLists.txt
index 2375c66931..25fad5b456 100644
--- a/src/Examples/CMakeLists.txt
+++ b/src/Examples/CMakeLists.txt
@@ -30,6 +30,10 @@ target_link_libraries( ListExample tnl )
 ADD_EXECUTABLE( LoggerExample LoggerExample.cpp )
 target_link_libraries( LoggerExample tnl )
 
+ADD_EXECUTABLE( MathExample MathExample.cpp )
+target_link_libraries( MathExample tnl )
+
+
 ADD_EXECUTABLE( StringExample StringExample.cpp )
 target_link_libraries( StringExample tnl )
 
diff --git a/src/Examples/ConfigDescriptionExample.cpp b/src/Examples/ConfigDescriptionExample.cpp
index a6e0bded8a..6d7d48d900 100644
--- a/src/Examples/ConfigDescriptionExample.cpp
+++ b/src/Examples/ConfigDescriptionExample.cpp
@@ -1,5 +1,5 @@
 #include <iostream>
-#include <TNL/ConfigDescription.h>
+#include <ConfigDescription.h>
 
 using namespace TNL;
 using namespace std;
diff --git a/src/Examples/ListExample.cpp b/src/Examples/ListExample.cpp
index 4582436a44..8737060d21 100644
--- a/src/Examples/ListExample.cpp
+++ b/src/Examples/ListExample.cpp
@@ -6,6 +6,18 @@ using namespace std;
        
 int main()
 {
+    template List< int > lst;
     List lst;
-    lst.Append(data);
+    lst.isEmpty();
+
+    lst.Append(1);
+    lst.Append(3);
+
+    lst.isEmpty();
+    lst.getSize();
+
+    lst.Insert(2,1);
+
+    Array array;
+    lst.template toArray< int >(array);
 }
\ No newline at end of file
-- 
GitLab