Lines Matching refs:T
51 template<typename T>
54 T value_;
55 StackNode<T>* next_;
58 StackNode(T t, StackNode* next = nullptr)
59 : value_(static_cast<T&&>(t)), in value_()
63 template<typename T>
66 StackNode<T>* head_;
71 void push(T t) { in push()
72 head_ = new StackNode<T>(static_cast<T&&>(t), head_); in push()
75 T pop() { in pop()
76 StackNode<T>* cur = head_; in pop()
78 T res = static_cast<T&&>(cur->value_); in pop()
85 template<typename T>
94 explicit _Node(const T& val) : mVal(val) {} in _Node()
96 inline T& getRef() { return mVal; } in getRef()
97 inline const T& getRef() const { return mVal; } in getRef()
102 T mVal;