ae2f_docs
a.cpp
Go to the documentation of this file.
1
2
3
4#if __cplusplus >= (201103L)
5#define voidconv (void)
6
7#include <ae2f/errGlob.hpp>
8
9#include <ae2f/BitVec.h>
10#include <ae2f/BitVec.hpp>
11
12#include <ae2f/Call.h>
13
14#include <ae2f/Cmp.h>
15#include <ae2f/Cmp.hpp>
16
17#include <ae2f/Float.h>
18#include <ae2f/Cast.h>
19
20#include <ae2f/errGlob.h>
21
22#include <ae2f/Pack/Beg.h>
23#include <ae2f/Pack/End.h>
24
25#include <ae2f/Pack/Num.auto.h>
26
27#else
28#define voidconv
29#endif
30
31
32#if __cplusplus >= (201103L)
33int main() {
36 ae2f::rBitVec<int> a = 3;
41
42 switch(3) {
43 case ae2f::Cmp::TakeLs<int>(3, 5):
44 break; default: return 1;
45 }
46
47 switch(3) {
48 case ae2f::Cmp::TakeGt<int>(-1, 3):
49 break; default: return 1;
50 }
51
52 switch(34) {
53 case ae2f::Cmp::Diff<int>(0, 34):
54 break; default: return 1;
55 }
56
57
58#if __ae2f_stdcheck_CC(201403L)
59 switch(8) {
60 case ae2f::rBitVec<int>(8).FndOne().obj:
61 break; default:
62 return 1;
63 }
64
65 switch(0) {
66 case ae2f::rBitVec<unsigned int>(0).FndOne().obj:
67 break; default: return 1;
68 }
69#endif
70
71 switch(0) {
72 case ae2f::rBitVec<int>(5).Get(1):
73 break; default: return 1;
74 }
75
76 return 0;
77}
78
79#else
80
81int main() {
82 return 0;
83}
84#endif
#define __ae2f_stdcheck_CC(v)
Definition LangVer.h:72
int main()
#define voidconv
Definition a.cpp:28
constexprmethod rBitVec(const t &&obj) noexcept
Definition BitVec.hpp:45
constextendedmethod const rBitVec< t > FndOne() const noexcept
Definition BitVec.hpp:92
constexprmethod bool Get(idx_t i) const noexcept
Definition BitVec.hpp:65
static constexprmethod rBitVec< t > Filled(idx_t length) noexcept
Definition BitVec.hpp:61
constexprmethod R TakeLs(T a, K b)
Definition Cmp.hpp:30
constexprmethod R TakeGt(T a, K b)
Definition Cmp.hpp:23
constexprmethod R Diff(T a, K b)
Definition Cmp.hpp:35
This namespace contains the class from this library.
Definition BitVec.hpp:23
constexprmethod fpCmp_t xfpCmp(xfpCmp_t< T > a) noexcept
Returns itself as fpCmp_t.
Definition Fun.hpp:39
Gets the code.
Definition errGlob.hpp:25
static errGlobState errGlobStateWithThrow(ae2f_err_t a)
It is a constructor, which will throw it is a state critical.
Definition errGlob.hpp:116