aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/rpclib/include/rpc/detail/if.h
blob: 7e4cab4f14122801fa81349b402d527bef569295 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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 */