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
20namespace bio::meta
21{
22
28template <typename t>
29concept transformation_trait = requires { typename t::type; };
30
36template <typename t>
37concept unary_type_trait = std::is_base_of_v<std::integral_constant<typename t::value_type, t::value>, t>;
38
39} // namespace bio::meta
Concept for a transformation trait.
Definition: concept.hpp:29
Concept for a unary traits type.
Definition: concept.hpp:37
Provides platform and dependency checks.
The Meta module's namespace.