This commit is contained in:
chatlanin 2022-03-24 16:49:53 +03:00
parent ff0c8c3fcb
commit 0f97358f8c

View File

@ -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>{}));