Home | History | Annotate | Download | only in temp.variadic

Lines Matching refs:Values

54 template<typename... Values> class tuple;
123 template<typename... Values>
124 tuple<typename make_tuple_result<Values>::type...>
125 make_tuple(const Values&... values) {
126 return tuple<typename make_tuple_result<Values>::type...>(values...);
129 template<typename... Values>
130 tuple<Values&...> tie(Values&... values) {
131 return tuple<Values&...>(values...);
146 template<typename... Values> struct tuple_size<tuple<Values...> > {
147 static const int value = sizeof...(Values);
178 template<int I, typename Head, typename... Values>
179 class get_impl<I, tuple<Head, Values...> > {
180 typedef typename tuple_element<I-1, tuple<Values...> >::type Element;
183 typedef get_impl<I-1, tuple<Values...> > Next;
185 static RJ get(tuple<Head, Values...>& t) { return Next::get(t.tail()); }
186 static PJ get(const tuple<Head, Values...>& t) { return Next::get(t.tail()); }
189 template<typename Head, typename... Values>
190 class get_impl<0, tuple<Head, Values...> > {
194 static RJ get(tuple<Head, Values...>& t) { return t.head(); }
195 static PJ get(const tuple<Head, Values...>& t) { return t.head(); }
198 template<int I, typename... Values> typename add_reference<
199 typename tuple_element<I, tuple<Values...> >::type >::type
200 get(tuple<Values...>& t) {
201 return get_impl<I, tuple<Values...> >::get(t);
204 template<int I, typename... Values> typename add_const_reference<
205 typename tuple_element<I, tuple<Values...> >::type >::type
206 get(const tuple<Values...>& t) {
207 return get_impl<I, tuple<Values...> >::get(t);