seqan / product_backlog

This repository is used as product backlog for all SeqAn relevant backlog items. This is intended to organise the work for the team.
2 stars 1 forks source link

move seqan3::views::repeat to seqan3/utility/views/ #353

Closed marehr closed 3 years ago

marehr commented 3 years ago

Tasks

From e6d59c8fabc3dd5917d93db6a5e8fc3e8cea668d Mon Sep 17 00:00:00 2001
From: marehr <marehr-github@marehr.dialup.fu-berlin.de>
Date: Sun, 18 Apr 2021 12:47:49 +0200
Subject: [PATCH 31/35] TODO: [MISC] move seqan3::views::repeat to
 seqan3/utility/views/

---
 include/seqan3/range/views/repeat.hpp | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/include/seqan3/range/views/repeat.hpp b/include/seqan3/range/views/repeat.hpp
index ba7776003..9fe6a9171 100644
--- a/include/seqan3/range/views/repeat.hpp
+++ b/include/seqan3/range/views/repeat.hpp
@@ -350,7 +353,17 @@ namespace seqan3::views
  *
  * \include test/snippet/range/views/repeat.cpp
  *
+ * \todo add snippet for code smells like this:
+ *
+ * // std::string str1 = seqan3::views::repeat_n('A', 5) | seqan3::views::to<std::string>;
+ * // same as
+ * // std::string str2{5, 'A'};
+ *
  * \hideinitializer
+ *
+ * \experimentalapi{Experimental since version 3.1.}
+ *
+ * TODO move to seqan3/utility/views
  */
 constexpr inline detail::repeat_fn repeat{};
 //!\}
-- 
2.31.1