1#ifndef NE_STL_INCLUDENE_STL_TUPLE_H
2#define NE_STL_INCLUDENE_STL_TUPLE_H
11template <int32_t... Ns>
13template <int32_t... Ns>
15template <int32_t I, int32_t... Ns>
19template <int32_t... Ns>
25template <
typename... TArgs>
29 std::size_t
size()
const {
return values_.size(); }
32template <
typename T,
typename... TArgs>
37 using base_type::values_;
38 tuple(
const T& v,
const TArgs&... tails)
39 :
tuple<TArgs...>(tails...) {
43template <uint32_t N,
typename... TArgs>
45template <uint32_t N,
typename T,
typename... TArgs>
50template <
typename T,
typename... TArgs>
55template <uint32_t N,
typename... TArgs>
59template <uint32_t N,
typename... TArgs>
61 using tuple_type =
tuple<TArgs...>;
65template <
typename... Type>
67 return tuple<Type...>(args...);
69template <
typename TTuple, uint32_t... Ns>
73template <uint32_t... Ns,
typename... TArgs>
Definition ne_stl_continuous_container.h:15
Definition ne_stl_any.h:7
typename int_sequence_gen< N >::type sequence_t
Definition ne_stl_tuple.h:24
auto extract_tuple(TTuple &tup) -> decltype(make_tuple(tuple_get< Ns >(tup)...))
Definition ne_stl_tuple.h:70
tuple< Type... > make_tuple(const Type &... args)
Definition ne_stl_tuple.h:66
const tuple_at< N, tuple< TArgs... > >::value_type & tuple_get(const tuple< TArgs... > &tuple_)
Definition ne_stl_tuple.h:56
_ValueType * any_cast(any *operand)
Definition ne_stl_any.h:117
typename int_sequence_gen< I - 1, I - 1, Ns... >::type type
Definition ne_stl_tuple.h:17
Definition ne_stl_tuple.h:14
Definition ne_stl_tuple.h:12
Definition ne_stl_tuple.h:33
tuple(const T &v, const TArgs &... tails)
Definition ne_stl_tuple.h:38
T value_type
Definition ne_stl_tuple.h:34
std::size_t size() const
Definition ne_stl_tuple.h:29
nstd::vector< nstd::any > values_
Definition ne_stl_tuple.h:30
T value_type
Definition ne_stl_tuple.h:52
typename tuple_at< N - 1, tuple< TArgs... > >::value_type value_type
Definition ne_stl_tuple.h:47
typename tuple_at< N - 1, tuple< TArgs... > >::tuple_type tuple_type
Definition ne_stl_tuple.h:48
Definition ne_stl_tuple.h:44
Definition ne_stl_tuple.h:26