proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
unreachable.hpp
Go to the documentation of this file.
1#ifndef VEG_UNREACHABLE_HPP_JNCM31VSS
2#define VEG_UNREACHABLE_HPP_JNCM31VSS
3
7
8namespace proxsuite {
9namespace linalg {
10namespace veg {
11namespace meta {
12namespace nb {
14{
16 {
17#ifdef NDEBUG
19#else
21#endif
22 }
23};
24
26{
27 VEG_INLINE constexpr auto operator()(bool Cond) const VEG_NOEXCEPT->bool
28 {
29 return (Cond ? unreachable{}() : (void)0), Cond;
30 }
31};
32} // namespace nb
33VEG_NIEBLOID(unreachable);
34VEG_NIEBLOID(unreachable_if);
35} // namespace meta
36} // namespace veg
37} // namespace linalg
38} // namespace proxsuite
39
41#endif /* end of include guard VEG_UNREACHABLE_HPP_JNCM31VSS */
#define HEDLEY_UNREACHABLE()
#define VEG_NIEBLOID(Name)
Definition macros.hpp:545
#define VEG_INLINE
Definition macros.hpp:118
#define VEG_NOEXCEPT
Definition prologue.hpp:30
VEG_INLINE constexpr auto operator()(bool Cond) const VEG_NOEXCEPT -> bool
VEG_INLINE void operator()() const VEG_NOEXCEPT