This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
template<auto A, auto B, auto first_, auto second_, typename to_compare> | |
struct inline_if | |
{ | |
constexpr auto operator()() | |
{ | |
if constexpr(to_compare{}.template operation<A, B>()) | |
{ | |
return first_; |