SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
move.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/std/ranges>
17 #include <seqan3/std/type_traits>
18 
20 
21 namespace seqan3::views
22 {
23 
73 #ifdef SEQAN3_DEPRECATED_310
74 SEQAN3_DEPRECATED_310 inline auto const move = std::views::transform(detail::multi_invocable
75 {
76  [] (auto && arg) -> std::remove_cvref_t<decltype(arg)> { return std::move(arg); },
77  [] (auto & arg) -> decltype(auto) { return std::move(arg); }
78 });
79 #endif // SEQAN3_DEPRECATED_310
81 
82 } // namespace seqan3::views
decltype(detail::transform< trait_t >(list_t{})) transform
Apply a transformation trait to every type in the list and return a seqan3::type_list of the results.
Definition: traits.hpp:471
auto const move
A view that turns lvalue-references into rvalue-references.
Definition: move.hpp:74
Provides a type that combines multiple invocables.
The SeqAn namespace for views.
Definition: char_to.hpp:22
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:203
Adaptations of concepts from the Ranges TS.
Provides C++20 additions to the type_traits header.