tesseract++
0.0.1
N-dimensional tensor library for embedded systems
Loading...
Searching...
No Matches
core
include
fused
BaseExpr.h
Go to the documentation of this file.
1
#pragma once
2
3
namespace
detail
4
{
5
struct
BaseExprTag
6
{
7
};
8
}
9
10
// ===============================
11
// Base Expression Interface (CRTP)
12
// ===============================
13
template
<
typename
Derived>
14
class
BaseExpr
:
public
detail::BaseExprTag
15
{
16
public
:
17
const
Derived &
derived
()
const
18
{
19
return
static_cast<
const
Derived &
>
(*this);
20
}
21
};
BaseExpr
Definition
BaseExpr.h:15
BaseExpr::derived
const Derived & derived() const
Definition
BaseExpr.h:17
detail
Definition
BaseExpr.h:4
detail::BaseExprTag
Definition
BaseExpr.h:6
Generated by
1.9.8