The left hand size of a decomposed expression. This can either be turned into a BinaryExpr
if an operand or relation follows, or into a UnaryExpr
otherwise.
More...
#include <expression_decomposition.hpp>
|
| LhsExpression (LhsT const &lhs) |
| Constructs this left hand size of a decomposed expression.
|
|
UnaryExpression< LhsT > | make_unary () |
| Turns this expression into an UnaryExpr . This might only be called if the wrapped expression is implicitly convertible to bool .
|
|
| operator bool () |
| Implicitly cast to bool. This is used when encountering && or ||.
|
|
template<typename LhsT>
class kassert::internal::LhsExpression< LhsT >
The left hand size of a decomposed expression. This can either be turned into a BinaryExpr
if an operand or relation follows, or into a UnaryExpr
otherwise.
- Template Parameters
-
◆ LhsExpression()
Constructs this left hand size of a decomposed expression.
- Parameters
-
lhs | The wrapped expression. |
◆ make_unary()
Turns this expression into an UnaryExpr
. This might only be called if the wrapped expression is implicitly convertible to bool
.
- Returns
- This expression as
UnaryExpr
.
◆ operator bool()
Implicitly cast to bool. This is used when encountering && or ||.
- Returns
- The boolean result of the expression.
The documentation for this class was generated from the following file: