SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
shortcuts.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2020, 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 #include <seqan3/std/ranges>
17 
18 namespace seqan3
19 {
20 
22 template <typename t>
23 SEQAN3_DEPRECATED_310 auto begin(t && v)
24 {
25  return std::ranges::begin(std::forward<t>(v));
26 }
27 
28 template <typename t>
29 SEQAN3_DEPRECATED_310 auto end(t && v)
30 {
31  return std::ranges::end(std::forward<t>(v));
32 }
33 
34 template <typename t>
35 SEQAN3_DEPRECATED_310 auto cbegin(t && v)
36 {
37  return std::ranges::cbegin(std::forward<t>(v));
38 }
39 
40 template <typename t>
41 SEQAN3_DEPRECATED_310 auto cend(t && v)
42 {
43  return std::ranges::cend(std::forward<t>(v));
44 }
45 
46 template <typename t>
47 SEQAN3_DEPRECATED_310 auto size(t && v)
48 {
49  return std::ranges::size(std::forward<t>(v));
50 }
51 
52 template <typename t>
53 SEQAN3_DEPRECATED_310 auto empty(t && v)
54 {
55  return std::ranges::empty(std::forward<t>(v));
56 }
58 
59 } // namespace seqan3
SEQAN3_DEPRECATED_310
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:194
seqan3
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
seqan3::pack_traits::size
constexpr size_t size
The size of a type pack.
Definition: traits.hpp:116
ranges
Adaptations of concepts from the Ranges TS.
platform.hpp
Provides platform and dependency checks.
std::begin
T begin(T... args)
std::empty
T empty(T... args)
std::end
T end(T... args)