21 lines
333 B
C++
21 lines
333 B
C++
#ifndef A8_ARGS_H
|
|
#define A8_ARGS_H
|
|
|
|
namespace a8
|
|
{
|
|
class Args
|
|
{
|
|
public:
|
|
|
|
Args(std::vector<std::any> args):args_(std::move(args)) {};
|
|
|
|
template <typename T>
|
|
T Get(size_t index) const { return std::any_cast<T>(args_.at(index));};
|
|
|
|
private:
|
|
std::vector<std::any> args_;
|
|
};
|
|
}
|
|
|
|
#endif
|