46#ifndef MICRO_TEST_PLUS_OPERATORS_H_
47#define MICRO_TEST_PLUS_OPERATORS_H_
62#pragma GCC diagnostic push
63#pragma GCC diagnostic ignored "-Wpadded"
64#pragma GCC diagnostic ignored "-Waggregate-return"
66#pragma clang diagnostic ignored "-Wc++98-compat"
67#pragma clang diagnostic ignored "-Wunknown-warning-option"
127 [[nodiscard]]
constexpr auto
148 [[nodiscard]]
constexpr auto
176 [[nodiscard]]
constexpr auto
179 return detail::eq_{
static_cast<T&&
> (lhs),
static_cast<T&&
> (rhs) };
204 [[nodiscard]]
constexpr auto
207 return detail::ne_{
static_cast<T&&
> (lhs),
static_cast<T&&
> (rhs) };
232 template <
class Lhs_T,
class Rhs_T,
236 [[nodiscard]]
constexpr auto
264 template <
class Lhs_T,
class Rhs_T,
268 [[nodiscard]]
constexpr auto
296 template <
class Lhs_T,
class Rhs_T,
300 [[nodiscard]]
constexpr auto
329 template <
class Lhs_T,
class Rhs_T,
333 [[nodiscard]]
constexpr auto
361 template <
class Lhs_T,
class Rhs_T,
365 [[nodiscard]]
constexpr auto
366 operator< (
const Lhs_T& lhs,
const Rhs_T& rhs)
394 template <
class Lhs_T,
class Rhs_T,
398 [[nodiscard]]
constexpr auto
399 operator<= (
const Lhs_T& lhs,
const Rhs_T& rhs)
426 template <
class Lhs_T,
class Rhs_T,
430 [[nodiscard]]
constexpr auto
431 operator and (
const Lhs_T& lhs,
const Rhs_T& rhs)
458 template <
class Lhs_T,
class Rhs_T,
462 [[nodiscard]]
constexpr auto
463 operator or (
const Lhs_T& lhs,
const Rhs_T& rhs)
489 template <
class T, type_traits::requires_t<type_traits::is_op_v<T>> = 0>
490 [[nodiscard]]
constexpr auto
491 operator not(
const T& t)
503#pragma GCC diagnostic pop
C++ header file with declarations for the µTest++ internals.
constexpr auto operator>=(const Lhs_T &lhs, const Rhs_T &rhs)
Greater than or equal operator. Matches only if at least one operand is of local type (derived from l...
constexpr auto operator<=(const Lhs_T &lhs, const Rhs_T &rhs)
Less than or equal operator. Matches only if at least one operand is of local type (derived from loca...
constexpr auto operator>(const Lhs_T &lhs, const Rhs_T &rhs)
Greater than operator. Matches only if at least one operand is of local type (derived from local op).
constexpr auto operator<(const Lhs_T &lhs, const Rhs_T &rhs)
Less than operator. Matches only if at least one operand is of local type (derived from local op).
constexpr auto operator!=(std::string_view lhs, std::string_view rhs)
Non-equality operator for string_view objects.
constexpr auto operator==(std::string_view lhs, std::string_view rhs)
Equality operator for string_view objects.
Custom operator overloads for expressive and type-safe test assertions.
typename requires_< Cond >::type requires_t
Alias template for extracting the type member from requires_.
constexpr auto is_op_v
Variable template to determine if a type derives from op.
Primary namespace for the µTest++ testing framework.
Logical AND comparator struct template.
Equality comparator struct template.
Greater than or equal comparator struct template.
Greater than comparator struct template.
Less than or equal comparator struct template.
Less than comparator struct template.
Non-equality comparator struct template.
Logical NOT comparator struct template.
Logical OR comparator struct template.