E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ replace_ignored

callable_replace_ignored_ eve::replace_ignored = {}
inlineconstexpr

Header file

#include <eve/module/core.hpp>

A convinience wrapper around if_else.

Callable Signatures

namespace eve
{
template< eve::value T, eve::conditional_expr Ignore, eve::value Other >
auto replace_ignored(T x, Ignore ignore, Other with )
-> decltype(eve::if_else(ignore, x, with))
}
constexpr auto if_else
Select value based on conditional mask or values.
Definition if_else.hpp:192
constexpr callable_replace_ignored_ replace_ignored
A small helper to replace ignored values.
Definition replace.hpp:55
EVE Main Namespace.
Definition abi.hpp:18

Parameters

  • x - main value
  • ignore - selection
  • with - value to replace with

Return value

Same as if_else.