TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches

#include <nda/clef/operation.hpp>

Detailed Description

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.
 

Member Function Documentation

◆ operator()()

template<typename C , typename A , typename B >
__inline__ A nda::clef::operation< tags::if_else >::operator() ( C const & c,
A const & a,
B const & b ) const
inline

Perform a ternary (if-else) operation.

Template Parameters
CType of the condition.
AType of the return type when the condition is true.
BType of the return type when the condition is false.
Parameters
cCondition convertible to bool.
aReturn value when the condition is true.
bReturn value when the condition is false (needs to be convertible to A).
Returns
Result of the ternary operation.

Definition at line 204 of file operation.hpp.


The documentation for this struct was generated from the following file: