TRIQS/nda 1.3.0
Multi-dimensional array library for C++
|
#include <nda/clef/operation.hpp>
Specialization of nda::clef::operation for nda::clef::tags::if_else.
Definition at line 191 of file operation.hpp.
Public Member Functions | |
template<typename C , typename A , typename B > | |
__inline__ A | operator() (C const &c, A const &a, B const &b) const |
Perform a ternary (if-else) operation. | |
|
inline |
Perform a ternary (if-else) operation.
C | Type of the condition. |
A | Type of the return type when the condition is true. |
B | Type of the return type when the condition is false. |
c | Condition convertible to bool. |
a | Return value when the condition is true. |
b | Return value when the condition is false (needs to be convertible to A). |
Definition at line 204 of file operation.hpp.