sources/basics.h

changeset 14
33b8f428bacb
parent 5
146825d63b9a
child 15
33da84af4bba
--- a/sources/basics.h	Sat Dec 13 04:50:33 2014 +0200
+++ b/sources/basics.h	Sat Dec 13 07:36:00 2014 +0200
@@ -31,6 +31,7 @@
 #pragma once
 #include <algorithm>
 #include <functional>
+#include <memory>
 
 #define FUNCTION auto
 #define STATIC
@@ -38,10 +39,18 @@
 #define MACRO_TO_STRING_2(A) #A
 #define MACRO_TO_STRING(A) MACRO_TO_STRING_2(A)
 
+class String;
+
 using std::swap;
 using std::min;
 using std::max;
 
+template<typename T>
+using SharedPointer = std::shared_ptr<T>;
+
+template<typename T>
+using WeakPointer = std::weak_ptr<T>;
+
 enum Color
 {
 	BLACK,
@@ -59,3 +68,5 @@
 
 template<typename Signature>
 using Function = std::function<Signature>;
+
+FUNCTION print_to_console (const String& a) -> void;

mercurial