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

Function BOOST_AUTO_TEST_CASE

test/test_transform_iterator.cpp:29–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "context_setup.hpp"
28
29BOOST_AUTO_TEST_CASE(value_type)
30{
31 using boost::compute::float4_;
32
33 BOOST_STATIC_ASSERT((
34 boost::is_same<
35 boost::compute::transform_iterator<
36 boost::compute::buffer_iterator<float>,
37 boost::compute::sqrt<float>
38 >::value_type,
39 float
40 >::value
41 ));
42 BOOST_STATIC_ASSERT((
43 boost::is_same<
44 boost::compute::transform_iterator<
45 boost::compute::buffer_iterator<float4_>,
46 boost::compute::length<float4_>
47 >::value_type,
48 float
49 >::value
50 ));
51}
52
53BOOST_AUTO_TEST_CASE(base_type)
54{

Callers

nothing calls this directly

Calls 4

copyFunction · 0.85
make_transform_iteratorFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected