YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
fwd.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yaclib
 

Macros

#define YACLIB_DEFINE_VOID_COMPARE(type)
 
#define YACLIB_DEFINE_VOID_TYPE(type)
 

Functions

 yaclib::YACLIB_DEFINE_VOID_TYPE (Unit)
 
 yaclib::YACLIB_DEFINE_VOID_TYPE (StopTag)
 

Macro Definition Documentation

◆ YACLIB_DEFINE_VOID_COMPARE

#define YACLIB_DEFINE_VOID_COMPARE (   type)
Value:
constexpr bool operator==(type, type) noexcept { \
return true; \
} \
constexpr bool operator!=(type, type) noexcept { \
return false; \
} \
constexpr bool operator<(type, type) noexcept { \
return false; \
} \
constexpr bool operator<=(type, type) noexcept { \
return true; \
} \
constexpr bool operator>=(type, type) noexcept { \
return true; \
} \
constexpr bool operator>(type, type) noexcept { \
return false; \
}
bool operator<(const ThreadLocalPtrProxy< T > &lhs, const ThreadLocalPtrProxy< U > &rhs) noexcept
bool operator>=(const ThreadLocalPtrProxy< T > &lhs, const ThreadLocalPtrProxy< U > &rhs) noexcept
bool operator>(const ThreadLocalPtrProxy< T > &lhs, const ThreadLocalPtrProxy< U > &rhs) noexcept
bool operator<=(const ThreadLocalPtrProxy< T > &lhs, const ThreadLocalPtrProxy< U > &rhs) noexcept

Definition at line 5 of file fwd.hpp.

◆ YACLIB_DEFINE_VOID_TYPE

#define YACLIB_DEFINE_VOID_TYPE (   type)
Value:
struct type {}; \
YACLIB_DEFINE_VOID_COMPARE(type)

Definition at line 25 of file fwd.hpp.