MCPcopy Create free account
hub / github.com/boostorg/compute / apply

Method apply

include/boost/compute/lambda/make_pair.hpp:37–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36 template<class Context, class Arg1, class Arg2>
37 static void apply(Context &ctx, const Arg1 &arg1, const Arg2 &arg2)
38 {
39 typedef typename lambda::result_of<Arg1, typename Context::args_tuple>::type T1;
40 typedef typename lambda::result_of<Arg2, typename Context::args_tuple>::type T2;
41
42 ctx.stream << "boost_make_pair(";
43 ctx.stream << type_name<T1>() << ", ";
44 proto::eval(arg1, ctx);
45 ctx.stream << ", ";
46 ctx.stream << type_name<T2>() << ", ";
47 proto::eval(arg2, ctx);
48 ctx.stream << ")";
49 }
50};
51
52} // end detail namespace

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected