MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / get

Class get

compute/include/boost/compute/functional/get.hpp:50–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48/// \see \ref field "field<T>"
49template<size_t N>
50struct get
51{
52 /// \internal_
53 template<class> struct result;
54
55 /// \internal_
56 template<class F, class Arg>
57 struct result<F(Arg)>
58 {
59 typedef typename detail::get_result_type<N, Arg>::type type;
60 };
61
62 template<class Arg>
63 detail::invoked_get<
64 N, Arg, typename boost::remove_cv<typename Arg::result_type>::type
65 > operator()(const Arg &arg) const
66 {
67 typedef typename boost::remove_cv<typename Arg::result_type>::type T;
68
69 return detail::invoked_get<N, Arg, T>(arg);
70 }
71};
72
73} // end compute namespace
74} // end boost namespace

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected