Xped
Loading...
Searching...
No Matches
Param.hpp
Go to the documentation of this file.
1
#ifndef XPED_PARAM_HPP_
2
#define XPED_PARAM_HPP_
3
4
#include <any>
5
6
namespace
Xped
{
7
8
struct
Param
9
{
10
std::any
value
;
11
template
<
typename
Scalar>
12
Scalar
get
()
const
13
{
14
return
std::any_cast<Scalar>(
value
);
15
}
16
};
17
18
}
// namespace Xped
19
#endif
Xped
Definition:
bench.cpp:62
Xped::Param
Definition:
Param.hpp:9
Xped::Param::get
Scalar get() const
Definition:
Param.hpp:12
Xped::Param::value
std::any value
Definition:
Param.hpp:10
include
Xped
Util
Param.hpp
Generated by
1.9.6