ae2f_docs
Loading...
Searching...
No Matches
CasterUnion.hpp
Go to the documentation of this file.
1/**
2 * @file CasterUnion.hpp
3 * @author ae2f
4 * @brief
5 * @date 2025-02-01
6 *
7 * @copyright Copyright (c) 2025
8 *
9 */
10
11#if !defined(ae2f_Cast_CasterUnion_hpp) && defined(__cplusplus)
12#define ae2f_Cast_CasterUnion_hpp
13#include "./../Cxx/Constexpr.h"
14
15/***
16 @brief
17 C++ union definition for @ref ae2f_union_cast
18 @tparam t
19 @tparam k
20 @see
21 @ref ae2f_union_cast
22 */
23template <typename t, typename k> union ae2f_UnionCaster {
24 t a;
25 k b;
26 ae2f_constexprmethod ae2f_UnionCaster(t _) : a(_) {}
27 ae2f_constexprmethod k _b() const { return b; }
28};
29
30#endif
#define ae2f_constexprmethod
Definition Constexpr.h:56
#define ae2f_WhenCXX(a)
Appears when the current language is C.
Definition Cxx.h:44
#define ae2f_is_cxx
Definition Cxx.h:48
#define ae2f_WhenC(a)
Appears when the current language is C++.
Definition Cxx.h:38
#define ae2f_NONE
Definition Guide.h:11
#define ae2f_stdcc_v
Standard C++ version. .
Definition LangVer.h:34
#define __ae2f_stdcheck_CC(v)
Definition LangVer.h:50
#define ae2f_PackCount
Definition Num.auto.h:6