a8/a8/args.h
aozhiwei 358c62df57 1
2022-12-12 17:24:42 +08:00

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