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

Method resize

include/boost/compute/container/valarray.hpp:207–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 }
206
207 void resize(size_t size, T value = T())
208 {
209 m_buffer = buffer(m_buffer.get_context(), size * sizeof(T));
210 fill(begin(), end(), value);
211 }
212
213 detail::buffer_value<T> operator[](size_t index)
214 {

Callers

nothing calls this directly

Calls 4

bufferClass · 0.85
fillFunction · 0.85
TClass · 0.50
get_contextMethod · 0.45

Tested by

no test coverage detected