BioC++
core-0.7.0
The Modern C++ libraries for Bioinformatics.
Loading...
Searching...
No Matches
concept.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2022 deCODE Genetics
3
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
4
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
5
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
6
// shipped with this file and also available at: https://github.com/biocpp/biocpp-core/blob/main/LICENSE.md
7
// -----------------------------------------------------------------------------------------------------
8
14
#pragma once
15
16
#include <
type_traits
>
17
18
#include <
bio/core.hpp
>
19
20
namespace
bio::meta
21
{
22
28
template
<
typename
t>
29
concept
transformation_trait
=
requires
{
typename
t::type; };
30
36
template
<
typename
t>
37
concept
unary_type_trait
= std::is_base_of_v<std::integral_constant<typename t::value_type, t::value>, t>;
38
39
}
// namespace bio::meta
bio::meta::transformation_trait
Concept for a transformation trait.
Definition:
concept.hpp:29
bio::meta::unary_type_trait
Concept for a unary traits type.
Definition:
concept.hpp:37
core.hpp
Provides platform and dependency checks.
bio::meta
The Meta module's namespace.
type_traits
bio
meta
type_traits
concept.hpp
Generated on Thu Mar 30 2023 15:25:52 for BioC++ by
1.9.6