-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New views #1410
New views #1410
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1410 +/- ##
==========================================
+ Coverage 97.59% 97.59% +<.01%
==========================================
Files 232 234 +2
Lines 8783 8789 +6
==========================================
+ Hits 8572 8578 +6
Misses 211 211
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+ renaming of the all
view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't force push during reviews, makes it very hard to see what was actually changed...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor stuff 💅 only
* \ingroup type_traits | ||
*/ | ||
template <typename ...invocable_ts> | ||
struct multi_lambda : invocable_ts... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhmm, multi lambda is not such a good name. I mean it would work with any invocable not just lambdas.
So what about: multi_invocable
invocable_pool
invocable_union
?
//!\brief Function object for seqan3::views::as_const. | ||
struct as_const_fn | ||
{ | ||
//!\brief Operator for returning values as values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//!\brief Operator for returning values as values. | |
//!\brief Operator for returning rvalue as prvalue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe link to the value categories of std as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it doesn't change the value category.
{ | ||
std::string const vec{"foobar"}; | ||
std::string_view v = vec | seqan3::views::type_reduce; // pipe notation; v is of type std::string_view | ||
seqan3::debug_stream << v << '\n'; // "foobar" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment of the comments
|
||
std::vector vec2{1, 2, 3}; | ||
std::span v2 = seqan3::views::type_reduce(vec2); // functional notation; v is of type std::span | ||
seqan3::debug_stream << v2 << '\n'; // "[1, 2, 3]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alignment of the comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only minor docu thing 💅
return std::move(arg); | ||
} | ||
|
||
//!\brief Operator for returns lvalue references as lvalue-to-const-references. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//!\brief Operator for returns lvalue references as lvalue-to-const-references. | |
//!\brief Operator that returns lvalue references as lvalue-to-const-references. |
Don't know what's going on with Jenkins here. |
views::move
views::as_const
views::all
→views::simplify_type