SeqAn3  3.0.2
The Modern C++ library for sequence analysis.
move.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 
16 #include <seqan3/std/ranges>
17 
18 namespace seqan3::views
19 {
20 
68 inline auto const move = std::views::transform(detail::multi_invocable
69 {
70  [] (auto && arg) -> std::remove_cvref_t<decltype(arg)> { return std::move(arg); },
71  [] (auto & arg) -> decltype(auto) { return std::move(arg); }
72 });
74 
75 } // namespace seqan3::views
function.hpp
Provides various type traits for use on functions.
seqan3::views
The SeqAn namespace for views.
Definition: view_iota_simd.hpp:218
seqan3::views::move
auto const move
A view that turns lvalue-references into rvalue-references.
Definition: move.hpp:68
ranges
Adaptations of concepts from the Ranges TS.
std::remove_cvref_t
seqan3::pack_traits::transform
seqan3::type_list< trait_t< pack_t >... > transform
Apply a transformation trait to every type in the pack and return a seqan3::type_list of the results.
Definition: traits.hpp:307