Home | History | Annotate | Download | only in tests

Lines Matching full:not_null

107 bool helper(not_null<int*> p) { return *p == 12; }
112 not_null<int*> p = nullptr; // yay...does not compile!
113 not_null<std::vector<char>*> p = 0; // yay...does not compile!
114 not_null<int*> p; // yay...does not compile!
116 not_null<int*> p = up;
119 not_null<std::vector<int>> f(std::vector<int>{1});
120 not_null<int> z(10);
121 not_null<std::vector<int>> y({1, 2});
125 not_null<int*> p(rp);
128 not_null<std::shared_ptr<int>> x(
137 not_null<Unrelated*> u = &unrelated;
139 not_null<MyDerived*> p = &derived;
140 not_null<MyBase*> q = &base;
148 not_null<Unrelated*> r = p;
149 not_null<Unrelated*> s = reinterpret_cast<Unrelated*>(p);
151 not_null<Unrelated*> t = reinterpret_cast<Unrelated*>(p.get());
158 not_null<int*> p = &i;
171 using NotNull1 = not_null<decltype(p1)>;
172 using NotNull2 = not_null<decltype(p2)>;
199 using NotNullSp1 = not_null<decltype(sp1)>;
208 using NotNull1 = not_null<decltype(p1)>;
217 gsl::not_null<int*> p(&v);
229 using NotNullSp1 = not_null<decltype(sp1)>;
230 using NotNullSp2 = not_null<decltype(sp2)>;
261 using NotNull1 = not_null<decltype(p1)>;
262 using NotNull2 = not_null<decltype(p2)>;