summaryrefslogtreecommitdiff
path: root/src/common/include/gudhi/Null_output_iterator.h
diff options
context:
space:
mode:
authorglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-24 14:28:24 +0000
committerglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-02-24 14:28:24 +0000
commit18a13841ce995148b0c46a35ee9209626f6bf3d5 (patch)
tree83fa4d5dda86fceabe675b679705b3b8e6bf7d9f /src/common/include/gudhi/Null_output_iterator.h
parentb0859ffb8c5d030f3d37ba758a325250f1d1c982 (diff)
Revert previous commit, was supposed to go to a branch !!!
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2106 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 59183c46120a19ad0a840dd57b7a4706a4d44bdd
Diffstat (limited to 'src/common/include/gudhi/Null_output_iterator.h')
-rw-r--r--src/common/include/gudhi/Null_output_iterator.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/src/common/include/gudhi/Null_output_iterator.h b/src/common/include/gudhi/Null_output_iterator.h
deleted file mode 100644
index 0cf043cd..00000000
--- a/src/common/include/gudhi/Null_output_iterator.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/* This file is part of the Gudhi Library. The Gudhi library
- * (Geometric Understanding in Higher Dimensions) is a generic C++
- * library for computational topology.
- *
- * Author(s): Marc Glisse
- *
- * Copyright (C) 2017 INRIA
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef NULL_OUTPUT_ITERATOR_H_
-#define NULL_OUTPUT_ITERATOR_H_
-
-#include <iterator>
-
-namespace Gudhi {
-
-/** An output iterator that ignores whatever it is given. */
-struct Null_output_iterator {
- typedef std::output_iterator_tag iterator_category;
- typedef void value_type;
- typedef void difference_type;
- typedef void pointer;
- typedef void reference;
-
- Null_output_iterator& operator++(){return *this;}
- Null_output_iterator operator++(int){return *this;}
- struct proxy {
- template<class T>
- proxy& operator=(T&&){return *this;}
- };
- proxy operator*()const{return {};}
-};
-} // namespace Gudhi
-
-#endif // NULL_OUTPUT_ITERATOR_H_