SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
transformation_trait_or.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/std/type_traits>
16 
18 
19 namespace seqan3::detail
20 {
21 
41 template <typename type_t, typename default_t>
43  type_t, // if yes, return type_t
44  std::type_identity<default_t>>; // else return default_t as trait
45 
50 template <typename type_t, typename default_t>
52 
53 } // namespace seqan3::detail
typename transformation_trait_or< type_t, default_t >::type transformation_trait_or_t
Helper type of seqan3::detail::transformation_trait_or (transformation_trait shortcut).
Definition: transformation_trait_or.hpp:51
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides C++20 additions to the type_traits header.
Provides the concepts seqan3::transformation_trait and seqan3::unary_type_trait.