Lines Matching defs:new
11 #include <new>
52 template <typename T, bool MEM_COPY> void* operator new(size_t, SkTArray<T, MEM_COPY>*, int);
81 * Copies one array to another. The new array will be heap allocated.
88 * Creates a SkTArray by copying contents of a standard C array. The new
176 * Adds 1 new default-initialized T value and returns it by reference. Note
187 * Version of above that uses a copy constructor to initialize the new item
197 * the start of that new range. Note: this address is only valid until the
423 // the new objects.
465 friend void* operator new<T>(size_t, SkTArray*, int);
487 void* operator new(size_t, SkTArray<T, MEM_COPY>* array, int SkDEBUGCODE(atIndex)) {
496 // to match the op new silences warnings about missing op delete when a constructor throws an
503 // Constructs a new object as the last element of an SkTArray.
505 (new ((array_ptr), (array_ptr)->count()) type_name args)