MCPcopy Create free account
hub / github.com/apache/impala / vector_as_array

Function vector_as_array

be/src/gutil/stl_util.h:321–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320template<typename T, typename Allocator>
321inline T* vector_as_array(vector<T, Allocator>* v) {
322# ifdef NDEBUG
323 return &*v->begin();
324# else
325 return v->empty() ? NULL : &*v->begin();
326# endif
327}
328
329template<typename T, typename Allocator>
330inline const T* vector_as_array(const vector<T, Allocator>* v) {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected