You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From 9349d35c51d6c4b8bb92426ba33643d3702d0347 Mon Sep 17 00:00:00 2001
From: marehr <[email protected]>
Date: Sun, 18 Apr 2021 12:47:50 +0200
Subject: [PATCH 10/35] TODO: [MISC] deprecate seqan3::views::take_until
---
include/seqan3/range/views/take_until.hpp | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/include/seqan3/range/views/take_until.hpp b/include/seqan3/range/views/take_until.hpp
index 63cd33109..74300ef94 100644
--- a/include/seqan3/range/views/take_until.hpp+++ b/include/seqan3/range/views/take_until.hpp@@ -587,7 +587,7 @@ namespace seqan3::views
*
* Consuming: `seqan3::views::take_until_and_consume` and `seqan3::views::take_until_or_throw_and_consume` behave the same
* as their non-consuming counter-parts if the underlying range models at least `std::forward_range`.
- * If, however, the underlying range is a pure `std::input_range`, the view will keep moving the underlying+ * If, however, the underlying range is a pure `std::views::input_range`, the view will keep moving the underlying
* iterator forward as long as the termination criterium holds and the underlying range is not at end.
* This is useful for string tokenisation among other things.
*
@@ -596,6 +596,9 @@ namespace seqan3::views
* \include test/snippet/range/views/take_until.cpp
*
* \hideinitializer
+ *+ * \deprecated TODO find out if std::views::take_while(!pred) is the same as seqan3::views::take_until(pred)+ * TODO move to include/seqan3/io/detail/take_until.hpp
*/
inline auto constexpr take_until = detail::take_until_fn<false, false>{};
@@ -610,6 +613,14 @@ inline auto constexpr take_until = detail::take_until_fn<false, false>{};
*
* \copydetails seqan3::views::take_until
* \hideinitializer
+ * \deprecated TODO move to include/seqan3/io/detail/take_until.hpp+ * auto take_while = std::views::take_while(v, !pred); A C G T \0+ * // do whatever take_while does, e.g. seqan3::detail::consume(take_while);+ * auto it = std::ranges::next(std::ranges::begin(take_while), std::ranges::end(take_while));+ *+ * // following ONLY WORKS for input_ranges+ * if (it == std::ranged::end(v))+ * throw reached_end;
*/
inline auto constexpr take_until_or_throw = detail::take_until_fn<true, false>{};
@@ -624,6 +635,12 @@ inline auto constexpr take_until_or_throw = detail::take_until_fn<true, false>{}
*
* \copydetails seqan3::views::take_until
* \hideinitializer
+ * \deprecated TODO move to include/seqan3/io/detail/take_until.hpp+ * TODO alternative+ * seems to be the same as std::views::take_while(!pred) after that std::views::drop_while(pred);+ * v1 = take_while(v, !pred);+ * // processes v1 and after that+ * v2 = drop_while(v, pred) | another_view
*/
inline auto constexpr take_until_and_consume = detail::take_until_fn<false, true>{};
@@ -638,6 +655,9 @@ inline auto constexpr take_until_and_consume = detail::take_until_fn<false, true
*
* \copydetails seqan3::views::take_until
* \hideinitializer
+ * \deprecated TODO move to include/seqan3/io/detail/take_until.hpp+ * TODO alternative+ * seems to be the same as std::views::take_while(!pred) after that std::views::drop_while(pred);
*/
inline auto constexpr take_until_or_throw_and_consume = detail::take_until_fn<true, true>{};
--
2.31.1
The text was updated successfully, but these errors were encountered:
Tasks
The text was updated successfully, but these errors were encountered: