[Groonga-commit] groonga/grnxx [master] Add a missing file (lib/slice.cpp).

Back to archive index

susumu.yata null+****@clear*****
Mon Feb 25 11:05:30 JST 2013


susumu.yata	2013-02-25 11:05:30 +0900 (Mon, 25 Feb 2013)

  New Revision: c110aec5ed47569427175f3ccbd83a615164f107
  https://github.com/groonga/grnxx/commit/c110aec5ed47569427175f3ccbd83a615164f107

  Log:
    Add a missing file (lib/slice.cpp).

  Added files:
    lib/slice.cpp

  Added: lib/slice.cpp (+28 -0) 100644
===================================================================
--- /dev/null
+++ lib/slice.cpp    2013-02-25 11:05:30 +0900 (2375678)
@@ -0,0 +1,28 @@
+/*
+  Copyright (C) 2013  Brazil, Inc.
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+#include "slice.hpp"
+
+#include <iostream>
+
+namespace grnxx {
+
+std::ostream &operator<<(std::ostream &stream, const Slice &s) {
+  return stream.write(static_cast<const char *>(s.address()), s.size());
+}
+
+}  // namespace grnxx
-------------- next part --------------
HTML����������������������������...
Download 



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