5#ifndef ICE_UTIL_SCOPED_ARRAY_H
6#define ICE_UTIL_SCOPED_ARRAY_H
10#ifndef ICE_CPP11_MAPPING
24 explicit ScopedArray(T* ptr = 0) :
29 ScopedArray(
const ScopedArray& other)
32 const_cast<ScopedArray&
>(other)._ptr = 0;
43 void reset(T* ptr = 0)
45 assert(ptr == 0 || ptr != _ptr);
53 ScopedArray& operator=(
const ScopedArray& other)
60 const_cast<ScopedArray&
>(other)._ptr = 0;
64 T& operator[](
size_t i)
const
76 void swap(ScopedArray& a)
Definition Optional.h:1095