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