[Groonga-commit] groonga/grnxx at 4f8a20e [master] Add memory.hpp for memory management.

Back to archive index

susumu.yata null+****@clear*****
Tue Dec 16 10:40:37 JST 2014


susumu.yata	2014-10-30 18:39:08 +0900 (Thu, 30 Oct 2014)

  New Revision: 4f8a20ee4d58782884f1072191246a223c419710
  https://github.com/groonga/grnxx/commit/4f8a20ee4d58782884f1072191246a223c419710

  Message:
    Add memory.hpp for memory management.

  Added files:
    include/grnxx/memory.hpp
  Modified files:
    include/grnxx/Makefile.am

  Modified: include/grnxx/Makefile.am (+1 -0)
===================================================================
--- include/grnxx/Makefile.am    2014-10-30 17:37:28 +0900 (11ca4ee)
+++ include/grnxx/Makefile.am    2014-10-30 18:39:08 +0900 (bbf1912)
@@ -5,6 +5,7 @@ SUBDIRS =		\
 pkginclude_HEADERS =	\
 	features.hpp	\
 	library.hpp	\
+	memory.hpp	\
 	string.hpp
 
 #	column.hpp	\

  Added: include/grnxx/memory.hpp (+16 -0) 100644
===================================================================
--- /dev/null
+++ include/grnxx/memory.hpp    2014-10-30 18:39:08 +0900 (055f59d)
@@ -0,0 +1,16 @@
+#ifndef GRNXX_MEMORY_HPP
+#define GRNXX_MEMORY_HPP
+
+#include <memory>
+
+namespace grnxx {
+
+// Smart pointer.
+using std::unique_ptr;
+
+// An object to make memory allocation (new) return nullptr on failure.
+using std::nothrow;
+
+}  // namespace grnxx
+
+#endif  // GRNXX_MEMORY_HPP
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index