Lines Matching refs:T
52 template<typename T>
55 T value_;
56 StackNode<T>* next_;
59 StackNode(T t, StackNode* next = nullptr)
60 : value_(static_cast<T&&>(t)), in value_()
64 template<typename T>
67 StackNode<T>* head_;
72 void push(T t) { in push()
73 head_ = new StackNode<T>(static_cast<T&&>(t), head_); in push()
76 T pop() { in pop()
77 StackNode<T>* cur = head_; in pop()
79 T res = static_cast<T&&>(cur->value_); in pop()
86 template<typename T>
95 explicit _Node(const T& val) : mVal(val) {} in _Node()
97 inline T& getRef() { return mVal; } in getRef()
98 inline const T& getRef() const { return mVal; } in getRef()
103 T mVal;