Lines Matching defs:new
11 #include <new>
44 template <typename T, bool MEM_COPY> void* operator new(size_t, SkTArray<T, MEM_COPY>*, int);
73 * Copies one array to another. The new array will be heap allocated.
80 * Creates a SkTArray by copying contents of a standard C array. The new
159 * Adds 1 new default-constructed T value and returns in by reference. Note
170 * Version of above that uses a copy constructor to initialize the new item
180 * of that new range. Note: this address is only valid until the next API
386 // the new objects.
428 friend void* operator new<T>(size_t, SkTArray*, int);
448 void* operator new(size_t, SkTArray<T, MEM_COPY>* array, int atIndex) {
457 // to match the op new silences warnings about missing op delete when a constructor throws an
464 // Constructs a new object as the last element of an SkTArray.
466 (new ((array_ptr), (array_ptr)->count()) type_name args)