Quellcode durchsuchen

publish PTA::empty_array()

David Rose vor 17 Jahren
Ursprung
Commit
cb3ff73396
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      panda/src/express/pointerToArray.h

+ 1 - 0
panda/src/express/pointerToArray.h

@@ -106,6 +106,7 @@ public:
 PUBLISHED:
 PUBLISHED:
   typedef TYPENAME pvector<Element>::size_type size_type;
   typedef TYPENAME pvector<Element>::size_type size_type;
   INLINE PointerToArray(TypeHandle type_handle = get_type_handle(Element));
   INLINE PointerToArray(TypeHandle type_handle = get_type_handle(Element));
+  INLINE static PointerToArray<Element> empty_array(size_type n, TypeHandle type_handle = get_type_handle(Element));
   INLINE PointerToArray(const PointerToArray<Element> &copy);
   INLINE PointerToArray(const PointerToArray<Element> &copy);
   INLINE size_type size() const;
   INLINE size_type size() const;
   INLINE const Element &get_element(size_type n) const;
   INLINE const Element &get_element(size_type n) const;