Skip to content

Commit

Permalink
[MISC] ::ranges -> std::ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
eseiler committed May 31, 2022
1 parent 379c2b1 commit fed6884
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/seqan3/io/sequence_file/format_embl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class format_embl
}
else
{
if (::ranges::empty(id)) //[[unlikely]]
if (std::ranges::empty(id)) //[[unlikely]]
throw std::runtime_error{"The ID field may not be empty when writing embl files."};

if (options.embl_genbank_complete_header)
Expand Down
4 changes: 2 additions & 2 deletions include/seqan3/io/sequence_file/format_genbank.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ class format_genbank
size_t sequence_size{0};
[[maybe_unused]] char buffer[50];
if constexpr (!detail::decays_to_ignore_v<seq_type>)
sequence_size = ::ranges::size(sequence);
sequence_size = std::ranges::size(sequence);

// ID
if constexpr (detail::decays_to_ignore_v<id_type>)
{
throw std::logic_error{"The ID field may not be set to ignore when writing genbank files."};
}
else if (::ranges::empty(id)) //[[unlikely]]
else if (std::ranges::empty(id)) //[[unlikely]]
{
throw std::runtime_error{"The ID field may not be empty when writing genbank files."};
}
Expand Down
2 changes: 1 addition & 1 deletion include/seqan3/search/views/minimiser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class minimiser_view : public std::ranges::view_interface<minimiser_view<urng1_t
*/
template <typename other_urng1_t>
requires (std::ranges::viewable_range<other_urng1_t>
&& std::constructible_from<urng1_t, ::ranges::ref_view<std::remove_reference_t<other_urng1_t>>>)
&& std::constructible_from<urng1_t, std::ranges::ref_view<std::remove_reference_t<other_urng1_t>>>)
minimiser_view(other_urng1_t && urange1, size_t const window_size) :
urange1{std::views::all(std::forward<other_urng1_t>(urange1))},
urange2{default_urng2_t{}},
Expand Down
8 changes: 4 additions & 4 deletions include/seqan3/utility/views/interleave.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ class view_interleave : public std::ranges::view_interface<view_interleave<urng_
//!\brief This resolves to range_type::size_type as the underlying range is guaranteed to be sized.
using size_type = std::ranges::range_size_t<urng_t>;
//!\brief The reference_type.
using reference = ::ranges::common_reference_t<std::ranges::range_reference_t<urng_t>,
std::ranges::range_reference_t<inserted_rng_t>>;
using reference = std::ranges::common_reference_t<std::ranges::range_reference_t<urng_t>,
std::ranges::range_reference_t<inserted_rng_t>>;
//!\brief The const_reference type is equal to the reference type.
using const_reference = detail::transformation_trait_or_t<
::ranges::common_reference<std::ranges::range_reference_t<urng_t const>,
std::ranges::range_reference_t<inserted_rng_t const>>,
std::ranges::common_reference<std::ranges::range_reference_t<urng_t const>,
std::ranges::range_reference_t<inserted_rng_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>;
Expand Down

0 comments on commit fed6884

Please sign in to comment.