SeqAn3
The Modern C++ library for sequence analysis.
iterator.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2019, 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 <iterator>
16 
17 #ifndef __cpp_lib_ranges
18 #include <range/v3/iterator/stream_iterators.hpp>
19 #endif // __cpp_lib_ranges
20 
21 #include <seqan3/core/platform.hpp>
22 
23 namespace seqan3
24 {
25 
30 #ifdef __cpp_lib_ranges
31 
36 using SEQAN3_DOXYGEN_ONLY(ostream_iterator =) ::std::ostream_iterator;
37 
42 using SEQAN3_DOXYGEN_ONLY(ostreambuf_iterator =) ::std::ostreambuf_iterator;
43 
44 #else
45 
50 using SEQAN3_DOXYGEN_ONLY(ostream_iterator =) ::ranges::ostream_iterator;
51 
56 using SEQAN3_DOXYGEN_ONLY(ostreambuf_iterator =) ::ranges::ostreambuf_iterator;
57 
58 #endif // __cpp_lib_ranges
59 } // namespace seqan3
Provides platform and dependency checks.
::ranges::ostreambuf_iterator ostreambuf_iterator
Alias for ranges::ostreambuf_iterator. Writes successive characters onto the output stream from which...
Definition: iterator.hpp:56
SeqAn specific customisations in the standard namespace.
The main SeqAn3 namespace.
::ranges::ostream_iterator ostream_iterator
Alias for ranges::ostream_iterator. Writes successive elements onto the output stream from which it w...
Definition: iterator.hpp:50
Definition: ranges:240