Lines Matching refs:To
42 template <typename Stored, typename From, typename To>
51 test_bounded_ptr<To> to = from; // conversion (implicit) in tests()
52 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests()
56 test_bounded_ptr<To> to(from); // conversion (explicit) in tests()
57 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests()
61 test_bounded_ptr<To> to{from}; // conversion (explicit) in tests()
62 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests()
66 test_bounded_ptr<To> to = static_cast<test_bounded_ptr<To> >(from); // conversion (explicit) in tests()
67 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests()
73 test_bounded_ptr<To> to = from; // conversion (implicit) in tests()
80 libkern::bounded_ptr<To, dummy_policy2> to = from; // conversion (implicit) in tests()
81 _assert(to.discard_bounds() == static_cast<To const*>(ptr)); in tests()
90 test_bounded_ptr<To> to(from); in tests()
91 _assert(to.unsafe_discard_bounds() == static_cast<To const*>(array.begin())); in tests()