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

Method assign

include/boost/compute/container/vector.hpp:554–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552
553 template<class InputIterator>
554 void assign(InputIterator first,
555 InputIterator last,
556 command_queue &queue)
557 {
558 // resize vector for new contents
559 resize(detail::iterator_range_size(first, last), queue);
560
561 // copy values into the vector
562 ::boost::compute::copy(first, last, begin(), queue);
563 }
564
565 template<class InputIterator>
566 void assign(InputIterator first, InputIterator last)

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 4

iterator_range_sizeFunction · 0.85
copyFunction · 0.85
fill_nFunction · 0.85
finishMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64