proxsuite
0.7.3
The Advanced Proximal Optimization Toolbox
Toggle main menu visibility
Loading...
Searching...
No Matches
primitives.hpp
Go to the documentation of this file.
1
#ifndef VEG_PRIMITIVES_HPP_A8O6GDV1S
2
#define VEG_PRIMITIVES_HPP_A8O6GDV1S
3
4
#include "
proxsuite/linalg/veg/type_traits/core.hpp
"
5
#include "
proxsuite/linalg/veg/internal/prologue.hpp
"
6
7
#if !VEG_HAS_BUILTIN(__is_integral) || \
8
!VEG_HAS_BUILTIN(__is_floating_point) || !(VEG_HAS_BUILTIN(__is_enum))
9
#include <type_traits>
10
#endif
11
12
namespace
proxsuite
{
13
namespace
linalg
{
14
namespace
veg
{
15
namespace
concepts
{
16
namespace
aux
{
17
VEG_DEF_CONCEPT
(
typename
T, no_wraps_around, (T(-1) <= T(0)));
18
VEG_DEF_CONCEPT
(
typename
T, wraps_around, (T(-1) > T(0)));
19
}
// namespace aux
20
21
VEG_DEF_CONCEPT
(
typename
T,
22
enum_type,
23
VEG_HAS_BUILTIN_OR
(__is_enum,
24
__is_enum(T),
25
std::is_enum<T>::value));
26
VEG_DEF_CONCEPT_FROM_BUILTIN_OR_STD
(
typename
T, integral, T);
27
VEG_DEF_CONCEPT_FROM_BUILTIN_OR_STD
(
typename
T, floating_point, T);
28
VEG_DEF_CONCEPT_DISJUNCTION
(
typename
T,
29
arithmetic,
30
((, integral<T>), (, floating_point<T>)));
31
VEG_DEF_CONCEPT_CONJUNCTION
(
typename
T,
32
signed_integral,
33
((, integral<T>), (
aux
::, no_wraps_around<T>)));
34
VEG_DEF_CONCEPT_CONJUNCTION
(
typename
T,
35
unsigned_integral,
36
((, integral<T>), (
aux
::, wraps_around<T>)));
37
}
// namespace concepts
38
}
// namespace veg
39
}
// namespace linalg
40
}
// namespace proxsuite
41
42
#include "
proxsuite/linalg/veg/internal/epilogue.hpp
"
43
#endif
/* end of include guard VEG_PRIMITIVES_HPP_A8O6GDV1S */
epilogue.hpp
VEG_DEF_CONCEPT_DISJUNCTION
#define VEG_DEF_CONCEPT_DISJUNCTION(Tpl, Name, Terms)
Definition
macros.hpp:367
VEG_DEF_CONCEPT_CONJUNCTION
#define VEG_DEF_CONCEPT_CONJUNCTION(Tpl, Name, Terms)
Definition
macros.hpp:360
VEG_DEF_CONCEPT
#define VEG_DEF_CONCEPT(Tpl, Name,...)
Definition
macros.hpp:321
proxsuite::linalg::veg::concepts::aux
Definition
primitives.hpp:16
proxsuite::linalg::veg::concepts
Definition
fix_index.hpp:51
proxsuite::linalg::veg
Definition
collection_algo.hpp:10
proxsuite::linalg
Definition
core.hpp:85
proxsuite
Definition
common.hpp:14
prologue.hpp
VEG_HAS_BUILTIN_OR
#define VEG_HAS_BUILTIN_OR(Builtin, True, False)
Definition
prologue.hpp:38
VEG_DEF_CONCEPT_FROM_BUILTIN_OR_STD
#define VEG_DEF_CONCEPT_FROM_BUILTIN_OR_STD(Tpl, Trait,...)
Definition
prologue.hpp:50
core.hpp
include
proxsuite
linalg
veg
type_traits
primitives.hpp
Generated by
1.17.0