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

Function BOOST_AUTO_TEST_CASE

test/test_buffer_allocator.cpp:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace compute = boost::compute;
19
20BOOST_AUTO_TEST_CASE(allocate)
21{
22 compute::buffer_allocator<int> allocator(context);
23
24 typedef compute::buffer_allocator<int>::pointer pointer;
25 pointer x = allocator.allocate(10);
26 allocator.deallocate(x, 10);
27}
28
29BOOST_AUTO_TEST_SUITE_END()

Callers

nothing calls this directly

Calls 2

allocateMethod · 0.80
deallocateMethod · 0.80

Tested by

no test coverage detected