Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:03:28+00:00 2026-06-18T06:03:28+00:00

It seems weird to iterate through an unordered_map , with begin(), end() and a

  • 0

It seems weird to iterate through an unordered_map, with begin(), end() and a forward iterator.

If so, why does it not have rbegin(), rend() and bi-direction iterators too?
is there any technical reason?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:03:29+00:00Added an answer on June 18, 2026 at 6:03 am

    Cite from The C++ Standard Library

    Reverse iterators let algorithms operate backward by switching the
    call of an increment operator internally into a call of the decrement
    operator, and vice versa. All containers with bidirectional iterators
    or random-access iterators (all sequence containers except
    forward_list and all associative containers) can create reverse
    iterators via their member functions rbegin() and rend(). Since C++11,
    the corresponding member functions returning read-only iterators,
    crbegin() and crend(), are also provided.

    For forward_lists and unordered containers, no backward-iteration
    interface (rbegin(), rend(), etc.) is provided. The reason is that the
    implementation requires only singly linked lists to go through the
    elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this seems to be weird but it really happened. I have this code working
I've not been able to find this out, which seems weird. When I add
I don't know if this is default behavior or not, but it seems weird
This seems weird: [SQL FIDDLE] The two users are definitely different i.e 1<>2. So
After ages of programming in php this question seems really weird still to me.
I've got a weird issue that almost seems like a Visual Studio 2008 issue.
My VS 2008 seems to be acting a bit weird and the solution is
I'm having this WEIRD Xcode error - Uncategorized error. It seems to look for
I've been struggling with some weird thing about php for a while. It seems
I have another Richfaces question which may seem rather weird. I am developing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.