Skip to content

Commit

Permalink
Remove unused group_iterator::operator[]
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwenn committed Dec 25, 2023
1 parent 72efd54 commit 46e35f9
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions include/cpp-sort/detail/merge_insertion_sort.h
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2022 Morwenn
* Copyright (c) 2016-2023 Morwenn
* SPDX-License-Identifier: MIT
*/
#ifndef CPPSORT_DETAIL_MERGE_INSERTION_SORT_H_
Expand Down Expand Up @@ -121,17 +121,6 @@ namespace cppsort::detail
return *this;
}

////////////////////////////////////////////////////////////
// Elements access operators

[[nodiscard]]
auto operator[](difference_type pos) const
-> decltype(base()[pos])
requires mstd::random_access_iterator<Iterator>
{
return _it[pos * _size + _size - 1];
}

////////////////////////////////////////////////////////////
// Comparison operators

Expand Down

0 comments on commit 46e35f9

Please sign in to comment.