Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/compute
/ BOOST_COMPUTE_FUNCTION
Function
BOOST_COMPUTE_FUNCTION
test/test_function.cpp:50–54 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
BOOST_AUTO_TEST_CASE(sum_odd_values)
49
{
50
BOOST_COMPUTE_FUNCTION(int, add_odd_value, (int sum, int value),
51
{
52
if(value & 1){
53
return sum + value;
54
}
55
else {
56
return sum + 0;
57
}
Callers
1
make_negate_function
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected