1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
-
+
|
#ifndef EMPATHY_LLR_BINARYINSTR_H
#define EMPATHY_LLR_BINARYINSTR_H
namespace empathy::llr
{
class BinaryOp
{
public:
template< typename L, typename R >
BinaryOp(L&& lhs, R&& rhs ) :
m_lhs( forward< L >( lhs ) ),
m_rhs( forward< L >( lhs ) )
m_rhs( forward< L >( rhs ) )
{}
const auto& lhs() const { return m_lhs; }
const auto& rhs() const { return m_rhs; }
bool canBeExecuted() const;
bool canBeEagerlyEvaluated() const;
|