17 lines
281 B
C++
17 lines
281 B
C++
#pragma once
|
|
|
|
#ifndef IF_H_1OW9DR7G
|
|
#define IF_H_1OW9DR7G
|
|
|
|
#include "rpc/detail/invoke.h"
|
|
|
|
namespace rpc {
|
|
namespace detail {
|
|
|
|
template <typename C, typename T, typename F>
|
|
using if_ = invoke<std::conditional<C::value, T, F>>;
|
|
}
|
|
}
|
|
|
|
#endif /* end of include guard: IF_H_1OW9DR7G */
|