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

Method vector

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

Creates an empty vector in \p context.

Source from the content-addressed store, hash-verified

119
120 /// Creates an empty vector in \p context.
121 explicit vector(const context &context = system::default_context())
122 : m_size(0),
123 m_allocator(context)
124 {
125 m_data = m_allocator.allocate(_minimum_capacity());
126 }
127
128 /// Creates a vector with space for \p count elements in \p context.
129 ///

Callers

nothing calls this directly

Calls 10

fill_nFunction · 0.85
iterator_range_sizeFunction · 0.85
copyFunction · 0.85
allocateMethod · 0.80
get_contextMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
finishMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected