blob: 36e36264cb1036b8e8b30969489df53e3e66ef55 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* -*- C++ -*- */
// Clean up the array (e.g., delete dynamically allocated memory).
template <class T> ACE_INLINE
ACE_Array<T>::~ACE_Array (void)
{
delete [] this->array_;
}
template <class T> ACE_INLINE size_t
ACE_Array<T>::size (void) const
{
return this->cur_size_;
}
template <class T> ACE_INLINE int
ACE_Array<T>::in_range (size_t index) const
{
return index < this->cur_size_;
}
template <class T> ACE_INLINE T &
ACE_Array<T>::operator[] (size_t index)
{
return this->array_[index];
}
template <class T> ACE_INLINE const T &
ACE_Array<T>::operator[] (size_t index) const
{
return this->array_[index];
}
|