qxLib
Classes | Macros
static_assert.h File Reference

Static assert macros. More...

#include <qx/macros/common.h>
#include <qx/math/common.h>
#include <functional>

Go to the source code of this file.

Classes

struct  qx::details::static_assert_two< left, right, compare_t >
 
struct  qx::details::static_assert_two< left, right, std::equal_to<> >
 
struct  qx::details::static_assert_two< left, right, std::not_equal_to<> >
 
struct  qx::details::static_assert_two< left, right, std::less<> >
 
struct  qx::details::static_assert_two< left, right, std::less_equal<> >
 
struct  qx::details::static_assert_two< left, right, std::greater<> >
 
struct  qx::details::static_assert_two< left, right, std::greater_equal<> >
 
struct  qx::details::static_assert_between< left, value, right >
 

Macros

#define QX_STATIC_ASSERT_BETWEEN(left, value, right)    qx::details::static_assert_between<(left), (value), (right)> QX_LINE_NAME(static_assert_between_)
 Shows left, value and right in error msg. More...
 

Detailed Description

Static assert macros.

Author
Khrapov
Date
7.08.2022

Definition in file static_assert.h.

Macro Definition Documentation

◆ QX_STATIC_ASSERT_BETWEEN

#define QX_STATIC_ASSERT_BETWEEN (   left,
  value,
  right 
)     qx::details::static_assert_between<(left), (value), (right)> QX_LINE_NAME(static_assert_between_)

Shows left, value and right in error msg.

Parameters
left- left value
value- value to check
right- right value

Definition at line 98 of file static_assert.h.