Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

is_permutation range version missing

Open
#98 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Start with boost::algorithm::is_permutation and reproduce the two-range call using the linked Godbolt example. Compare the desired boost::ranges::is_permutation interface with std::ranges::is_permutation; done means two ranges are accepted and invalid iterator interpretation is prevented by the appropriate concept checks.

Written by the indexing model from the issue text.

Description

There is no boost::ranges::is_permutation

Passing two ranges to boost::algorithm::is_permutation yields this error. The first parameter is correctly matched and the second parameter is incorrectly interpreted as a ForwardIterator without any BOOST_CONCEPT checks:
https://godbolt.org/z/TCE8Xm

It is also surprising that an algorithm defined in boost::algorithm takes a range as a first parameter and an iterator as the second parameter

Shouldn't there be a ranges version that takes two ranges? upcoming c++20 std::ranges::is_permutation takes two ranges as params:
https://eel.is/c++draft/alg.is.permutation

Dominant language
C++
Stars
45
Forks
104
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/range

All issues in boostorg/range

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.