aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/array_ref.pxd
blob: 41a4c72d69722b71ddfe0dd45945b8bb1e7afe79 (plain) (blame)
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
from libcpp cimport bool as bool_t


cdef extern from "util/generic/array_ref.h" nogil:
    cdef cppclass TArrayRef[T]:
        TArrayRef(...) except +

        T& operator[](size_t)

        bool_t empty()
        T* data() except +
        size_t size() except +
        T* begin() except +
        T* end() except +

    cdef cppclass TConstArrayRef[T]:
        TConstArrayRef(...) except +

        const T& operator[](size_t)

        bool_t empty()
        const T* data() except +
        size_t size() except +
        const T* begin() except +
        const T* end() except +