Opened 10 years ago

Closed 10 years ago

#6823 closed Feature Requests (wontfix)

Single-argument hash_range

Reported by: Olaf van der Spek <olafvdspek@…> Owned by: Daniel James
Milestone: To Be Determined Component: hash
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

Could you provide a single-argument hash_range function?

hash_range(R& r) { return hash_range(r.begin(), r.end() }

Change History (6)

comment:1 by Daniel James, 10 years ago

Why do you want that?

comment:2 by Olaf van der Spek <olafvdspek@…>, 10 years ago

It allows less verbose calls, the user doesn't have to bother with .begin() and .end() itself.

comment:3 by Daniel James, 10 years ago

I don't find that very compelling, as it should be rarely called, so there doesn't seem to be much to gain from the change.

comment:4 by Olaf van der Spek <olafvdspek@…>, 10 years ago

Every single bit helps and bits at up.

comment:5 by Daniel James, 10 years ago

But that goes both ways.

comment:6 by Daniel James, 10 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.