xtensor
Loading...
Searching...
No Matches
xtl_concepts.hpp
1
/***************************************************************************
2
* Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
3
* Copyright (c) QuantStack *
4
* *
5
* Distributed under the terms of the BSD 3-Clause License. *
6
* *
7
* The full license is in the file LICENSE, distributed with this software. *
8
****************************************************************************/
9
10
#ifndef XTENSOR_CONCEPTS_HPP
11
#define XTENSOR_CONCEPTS_HPP
12
13
#include <xtl/xcomplex.hpp>
14
#include <xtl/xtype_traits.hpp>
15
16
namespace
xtl
17
{
18
template
<
typename
T>
19
concept
integral_concept
= xtl::is_integral<T>::value;
20
template
<
typename
T>
21
concept
non_integral_concept
= !xtl::is_integral<T>::value;
22
template
<
typename
T>
23
concept
complex_concept
= xtl::is_complex<typename std::decay<T>::type::value_type>::value;
24
}
25
26
#endif
// XTENSOR_CONCEPTS_HPP
xtl::complex_concept
Definition
xtl_concepts.hpp:23
xtl::integral_concept
Definition
xtl_concepts.hpp:19
xtl::non_integral_concept
Definition
xtl_concepts.hpp:21
include
xtensor
misc
xtl_concepts.hpp
Generated by
1.13.2