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

Method capacity

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

Returns the capacity of the vector.

Source from the content-addressed store, hash-verified

432
433 /// Returns the capacity of the vector.
434 size_type capacity() const
435 {
436 if(m_data == pointer()) // null pointer check
437 {
438 return 0;
439 }
440 return m_data.get_buffer().size() / sizeof(T);
441 }
442
443 void reserve(size_type size, command_queue &queue)
444 {

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.36