acme
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages Concepts
raw_pointer_array.h
1#pragma once
2
3
4#include "array.h"
5#include "comparable_eq_array.h"
6#include "comparable_array.h"
7#include "pointer_array_process.h"
8
9
10template < typename TYPE >
11class raw_pointer_array :
12 public pointer_array_process < comparable_array < TYPE * >, TYPE >
13{
14public:
15
16
17 using pointer_array_process < comparable_array < TYPE * >, TYPE >::pointer_array_process;
18
19
20 raw_pointer_array() { }
21 raw_pointer_array(raw_pointer_array && array) : pointer_array_process < comparable_array < TYPE * >, TYPE >(::transfer(array)) { }
22
23
24 TYPE & object_at(::collection::index i) { return *this->element_at(i); }
25 const TYPE & object_at(::collection::index i) const { return *this->element_at(i); }
26
27
28};
29
30
31
32
Definition array.h:340