16using Executor = std::variant<SerialExecutor, CPUExecutor, GPUExecutor>;
28 typename ExecRhs>([[maybe_unused]]
const ExecLhs&, [[maybe_unused]]
const ExecRhs&)
30 if constexpr (std::is_same_v<ExecLhs, ExecRhs>)
32 return typename ExecLhs::exec() ==
typename ExecRhs::exec();
bool operator!=(const Executor &lhs, const Executor &rhs)
Checks if two executors are not equal, i.e. they are not of the same type.
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
bool operator==(const Executor &lhs, const Executor &rhs)
Checks if two executors are equal, i.e. they are of the same type.