add get
This commit is contained in:
parent
ff0c8c3fcb
commit
0f97358f8c
@ -37,6 +37,11 @@ namespace hack
|
||||
public:
|
||||
value_t get_value() { return value_; };
|
||||
|
||||
auto get(std::size_t index)
|
||||
{
|
||||
return std::get<index>(value_);
|
||||
}
|
||||
|
||||
auto length()
|
||||
{
|
||||
return std::sqrt(length_idx(std::make_index_sequence<std::tuple_size<value_t>::value>{}));
|
||||
|
Loading…
Reference in New Issue
Block a user