acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
raw_pointer_array.h
1#pragma once
2
3
4#include "array_base.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_base :
12 public pointer_array_process < comparable_array_base < TYPE * >, TYPE >
13{
14public:
15
16
17 using pointer_array_process < comparable_array_base < TYPE * >, TYPE >::pointer_array_process;
18
19
20 raw_pointer_array_base() { }
21 raw_pointer_array_base(raw_pointer_array_base && 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