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