SeqAn3
3.0.2
The Modern C++ library for sequence analysis.
▼
SeqAn3
Welcome
►
Setup
►
Tutorial
►
How-To
Cookbook
►
About
►
API Reference (Modules)
▼
API Reference (details)
►
Namespace List
►
Class List
▼
File List
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
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 <
type_traits
>
16
17
#include <
seqan3/core/type_traits/concept.hpp
>
18
#include <
seqan3/std/type_traits
>
19
20
namespace
seqan3::detail
21
{
22
42
template
<
typename
type_t,
typename
default_t>
43
using
transformation_trait_or =
std::conditional_t<transformation_trait<type_t>
,
// check if type_t::type exists
44
type_t,
// if yes, return type_t
45
std::type_identity<default_t>
>;
// else return default_t as trait
46
51
template
<
typename
type_t,
typename
default_t>
52
using
transformation_trait_or_t =
typename
transformation_trait_or<type_t, default_t>::type;
53
54
}
// namespace seqan3::detail
type_traits
Provides C++20 additions to the type_traits header.
concept.hpp
Provides the concepts seqan3::transformation_trait and seqan3::unary_type_trait.
std::type_identity
The identity transformation (a transformation_trait that returns the input).
std::conditional_t
type_traits
Version:
main_user
main_dev
3.4.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
seqan3
core
type_traits
transformation_trait_or.hpp
Generated on Thu Dec 3 2020 18:58:18 for SeqAn3 by
1.8.20