< prev index next >

src/hotspot/share/gc/z/zArray.hpp

Print this page
rev 57095 : [mq]: use
rev 57096 : [mq]: trailing_semi

*** 23,45 **** #ifndef SHARE_GC_Z_ZARRAY_HPP #define SHARE_GC_Z_ZARRAY_HPP #include "memory/allocation.hpp" template <typename T> class ZArray { private: static const size_t initial_capacity = 32; T* _array; size_t _size; size_t _capacity; ! // Copy and assignment are not allowed ! ZArray(const ZArray<T>& array); ! ZArray<T>& operator=(const ZArray<T>& array); void expand(size_t new_capacity); public: ZArray(); --- 23,44 ---- #ifndef SHARE_GC_Z_ZARRAY_HPP #define SHARE_GC_Z_ZARRAY_HPP #include "memory/allocation.hpp" + #include "utilities/macros.hpp" template <typename T> class ZArray { private: static const size_t initial_capacity = 32; T* _array; size_t _size; size_t _capacity; ! NONCOPYABLE(ZArray); void expand(size_t new_capacity); public: ZArray();
< prev index next >