Lines Matching refs:MoveOnlyView
22 struct MoveOnlyView : std::ranges::view_base { struct
24 constexpr MoveOnlyView() = default; argument
25 constexpr MoveOnlyView(const char* ptr) : view_(ptr) {} in MoveOnlyView() function
26 constexpr MoveOnlyView(std::string_view v) : view_(v) {} in MoveOnlyView() function
27 constexpr MoveOnlyView(MoveOnlyView&&) = default;
28 constexpr MoveOnlyView& operator=(MoveOnlyView&&) = default;
31 constexpr bool operator==(MoveOnlyView rhs) const { return view_ == rhs.view_; } in operator ==() argument
33 static_assert( std::ranges::view<MoveOnlyView>);
34 static_assert( std::ranges::contiguous_range<MoveOnlyView>);
35 static_assert(!std::copyable<MoveOnlyView>);
61 static_assert( CanCallBase<std::ranges::lazy_split_view<MoveOnlyView, ForwardView>&&>);
62 static_assert(!CanCallBase<std::ranges::lazy_split_view<MoveOnlyView, ForwardView>&>);
63 static_assert(!CanCallBase<std::ranges::lazy_split_view<MoveOnlyView, ForwardView> const &>);
64 static_assert(!CanCallBase<std::ranges::lazy_split_view<MoveOnlyView, ForwardView> const &&>);
114 std::ranges::lazy_split_view<MoveOnlyView, ForwardView> v; in test()
115 assert(std::move(v).base() == MoveOnlyView()); in test()