Graphle
1.0.0
A C++20 header-only graph library
Loading...
Searching...
No Matches
graphle
meta
if_constexpr.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
common.hpp
>
4
5
6
namespace
graphle::meta
{
14
template
<
bool
Condition,
typename
T,
typename
F>
15
constexpr
inline
decltype
(
auto
)
if_constexpr
(T&& if_true, F&& if_false) {
16
if
constexpr
(Condition)
return
GRAPHLE_FWD
(if_true);
17
else
return
GRAPHLE_FWD
(if_false);
18
}
19
}
common.hpp
GRAPHLE_FWD
#define GRAPHLE_FWD(...)
Definition:
common.hpp:14
graphle::meta
Definition:
doxygen.hpp:15
graphle::meta::if_constexpr
constexpr decltype(auto) if_constexpr(T &&if_true, F &&if_false)
Definition:
if_constexpr.hpp:15
Generated by
1.9.5