MCPcopy Create free account
hub / github.com/catboost/catboost / TVector

Class TVector

util/generic/vector.h:16–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15template <class T, class A>
16class TVector: public std::vector<T, TReboundAllocator<A, T>> {
17public:
18 using TBase = std::vector<T, TReboundAllocator<A, T>>;
19 using TSelf = TVector<T, A>;
20 using size_type = typename TBase::size_type;
21
22 inline TVector()
23 : TBase()
24 {
25 }
26
27 inline TVector(const typename TBase::allocator_type& a)
28 : TBase(a)
29 {
30 }
31
32 inline explicit TVector(::NDetail::TReserveTag rt)
33 : TBase()
34 {
35 this->reserve(rt.Capacity);
36 }
37
38 inline explicit TVector(::NDetail::TReserveTag rt, const typename TBase::allocator_type& a)
39 : TBase(a)
40 {
41 this->reserve(rt.Capacity);
42 }
43
44 inline explicit TVector(size_type count)
45 : TBase(count)
46 {
47 }
48
49 inline explicit TVector(size_type count, const typename TBase::allocator_type& a)
50 : TBase(count, a)
51 {
52 }
53
54 inline TVector(size_type count, const T& val)
55 : TBase(count, val)
56 {
57 }
58
59 inline TVector(size_type count, const T& val, const typename TBase::allocator_type& a)
60 : TBase(count, val, a)
61 {
62 }
63
64 inline TVector(std::initializer_list<T> il)
65 : TBase(il)
66 {
67 }
68
69 inline TVector(std::initializer_list<T> il, const typename TBase::allocator_type& a)
70 : TBase(il, a)
71 {
72 }
73

Callers

nothing calls this directly

Calls 6

emptyMethod · 0.95
operator=Function · 0.50
moveFunction · 0.50
assignMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected