Lines Matching refs:To
41 template <typename Stored, typename From, typename To>
51 test_bounded_ptr<To> to; in tests()
52 test_bounded_ptr<To>& ref = (to = from); in tests()
53 _assert(to.discard_bounds() == static_cast<To const*>(ptr1)); in tests()
60 test_bounded_ptr<To> to(ptr2, array.begin(), array.end()); in tests()
61 _assert(to.discard_bounds() == static_cast<To const*>(ptr2)); in tests()
63 test_bounded_ptr<To>& ref = (to = from); in tests()
64 _assert(to.discard_bounds() == static_cast<To const*>(ptr1)); in tests()
71 test_bounded_ptr<To> to; in tests()
72 test_bounded_ptr<To>& ref = (to = from); in tests()
80 libkern::bounded_ptr<To, dummy_policy2> to; in tests()
81 libkern::bounded_ptr<To, dummy_policy2>& ref = (to = from); in tests()
82 _assert(to.discard_bounds() == static_cast<To const*>(ptr1)); in tests()
92 test_bounded_ptr<To> to; in tests()
94 _assert(to.unsafe_discard_bounds() == static_cast<To const*>(array.begin())); in tests()