Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/containers/vector.cfa

    rfd54fef r58b6d1b  
    1818#include <stdlib.hfa>
    1919
    20 forall(T, allocator_t | allocator_c(T, allocator_t))
     20forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    2121void copy_internal(vector(T, allocator_t)* this, vector(T, allocator_t)* other);
    2222
    2323//------------------------------------------------------------------------------
    2424//Initialization
    25 forall(T, allocator_t | allocator_c(T, allocator_t))
     25forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    2626void ?{}(vector(T, allocator_t)& this)
    2727{
     
    3030}
    3131
    32 forall(T, allocator_t | allocator_c(T, allocator_t))
     32forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    3333void ?{}(vector(T, allocator_t)& this, vector(T, allocator_t) rhs)
    3434{
     
    3737}
    3838
    39 // forall(T, allocator_t | allocator_c(T, allocator_t))
     39// forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    4040// vector(T, allocator_t) ?=?(vector(T, allocator_t)* this, vector(T, allocator_t) rhs)
    4141// {
     
    4545// }
    4646
    47 forall(T, allocator_t | allocator_c(T, allocator_t))
     47forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    4848void ^?{}(vector(T, allocator_t)& this)
    4949{
     
    5454//------------------------------------------------------------------------------
    5555//Modifiers
    56 forall(T, allocator_t | allocator_c(T, allocator_t))
     56forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    5757void push_back(vector(T, allocator_t)* this, T value)
    5858{
     
    6262}
    6363
    64 forall(T, allocator_t | allocator_c(T, allocator_t))
     64forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    6565void pop_back(vector(T, allocator_t)* this)
    6666{
     
    6969}
    7070
    71 forall(T, allocator_t | allocator_c(T, allocator_t))
     71forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    7272void clear(vector(T, allocator_t)* this)
    7373{
     
    8282//Internal Helpers
    8383
    84 forall(T, allocator_t | allocator_c(T, allocator_t))
     84forall(otype T, otype allocator_t | allocator_c(T, allocator_t))
    8585void copy_internal(vector(T, allocator_t)* this, vector(T, allocator_t)* other)
    8686{
     
    9393//------------------------------------------------------------------------------
    9494//Allocator
    95 forall(T)
     95forall(otype T)
    9696void ?{}(heap_allocator(T)& this)
    9797{
     
    100100}
    101101
    102 forall(T)
     102forall(otype T)
    103103void ?{}(heap_allocator(T)& this, heap_allocator(T) rhs)
    104104{
     
    107107}
    108108
    109 forall(T)
     109forall(otype T)
    110110heap_allocator(T) ?=?(heap_allocator(T)& this, heap_allocator(T) rhs)
    111111{
     
    115115}
    116116
    117 forall(T)
     117forall(otype T)
    118118void ^?{}(heap_allocator(T)& this)
    119119{
     
    121121}
    122122
    123 forall(T)
     123forall(otype T)
    124124inline void realloc_storage(heap_allocator(T)* this, size_t size)
    125125{
Note: See TracChangeset for help on using the changeset viewer.