Skip to content

Commit

Permalink
[MISC] remove unused associated types in take view_until
Browse files Browse the repository at this point in the history
This fixes part of seqan/product_backlog#49 and fixes also part of seqan#1549.
  • Loading branch information
marehr committed Apr 9, 2020
1 parent 75f934f commit c684739
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions include/seqan3/range/views/take_until.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,26 +348,15 @@ class view_take_until : public std::ranges::view_interface<view_take_until<urng_
/*!\name Associated types
* \{
*/
//!\brief The reference_type.
using reference = reference_t<urng_t>;
//!\brief The const_reference type is equal to the reference type if the underlying range is const-iterable.
using const_reference = detail::transformation_trait_or_t<seqan3::reference<urng_t const>, void>;
//!\brief The value_type (which equals the reference_type with any references removed).
using value_type = std::ranges::range_value_t<urng_t>;
//!\brief The size_type is void, because this range is never sized.
using size_type = void;
//!\brief A signed integer type, usually std::ptrdiff_t.
using difference_type = std::ranges::range_difference_t<urng_t>;
//!\brief The iterator type of this view (a random access iterator).
using iterator = std::conditional_t<and_consume && !std::ranges::forward_range<urng_t>,
iterator_type_consume_input<urng_t>,
iterator_type<urng_t>>;
iterator_type_consume_input<urng_t>,
iterator_type<urng_t>>;

//!\brief The const_iterator type is equal to the iterator type if the underlying range is const-iterable.
using const_iterator = std::conditional_t<and_consume && !std::ranges::forward_range<urng_t>,
void,
detail::transformation_trait_or_t<
std::type_identity<iterator_type<urng_t const>>, void>>;
iterator_type<urng_t const>>;
//!\}

/*!\name Constructors, destructor and assignment
Expand Down

0 comments on commit c684739

Please sign in to comment.