SeqAn3  3.2.0
The Modern C++ library for sequence analysis.
ignore_output_iterator.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
4 // This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5 // shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6 // -----------------------------------------------------------------------------------------------------
7 
13 #pragma once
14 
15 #include <seqan3/core/platform.hpp>
16 
17 namespace seqan3::detail
18 {
19 
29 class ignore_output_iterator
30 {
31 public:
39  using value_type = void;
41  using reference = void;
43  using pointer = void;
45  using difference_type = std::ptrdiff_t;
47  using iterator_category = std::output_iterator_tag;
49 
53  ignore_output_iterator() = default;
54  ignore_output_iterator(ignore_output_iterator const &) = default;
55  ignore_output_iterator(ignore_output_iterator &&) = default;
56  ignore_output_iterator & operator=(ignore_output_iterator const &) = default;
57  ignore_output_iterator & operator=(ignore_output_iterator &&) = default;
58  ~ignore_output_iterator() = default;
60 
67  template <typename type>
68  constexpr ignore_output_iterator & operator=(type const /*v*/) noexcept
69  {
70  return *this;
71  }
72 
74  constexpr ignore_output_iterator & operator*() noexcept
75  {
76  return *this;
77  }
78 
80  constexpr ignore_output_iterator & operator++() noexcept
81  {
82  return *this;
83  }
84 
86  constexpr ignore_output_iterator & operator++(int) noexcept
87  {
88  return *this;
89  }
91 };
92 
93 } // namespace seqan3::detail
Provides platform and dependency checks.