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

  • Home
  • SEARCH
  • 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 8609877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:59:06+00:00 2026-06-12T03:59:06+00:00

C++ standard draft n3242 in 23.2, in table containing container requirements, states that X::reference

  • 0

C++ standard draft n3242 in 23.2, in table containing container requirements, states that X::reference for container containing T must be lvalue T. Yet, for vector<bool>, vector<bool>::reference is another class, a proxy for accessing individual bits of bytes stored in vector.

Does that mean that std::vector class template specification for T = bool, defined in standard, fails to fulfill container requirements?

  • 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-12T03:59:07+00:00Added an answer on June 12, 2026 at 3:59 am

    Does that mean that std::vector class template specification for T = bool, defined in standard, fails to fulfill container requirements?

    Yes.

    Similarly, its iterators are not truly random access iterators, because operator* yields a proxy object.

    vector<bool> is a mess.

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

Sidebar

Related Questions

The standard explicitly states that main has two valid (i.e., guaranteed to work) signatures;
The n3337.pdf draft, 5.3.1.8, states that: The operand of the unary - operator shall
According to C++11 9.1/7 (draft n3376) , a standard-layout class is a class that:
The C++ standard (quoting from draft n3242) says the following about subobjects [intro.object]: Unless
From reading revision N3242 of the c++11 draft, it appears that some components of
The C++0x standard working draft states (section 6.5.4) the following about the begin() and
So, poking through the n869 draft of the C99 standard I stumbled across this
The standard specifies (23.4.4.2:5, etc.) that constructing all four ordered associative containers ( map
A point from N3290 draft ISO Standard, §3.4.1/12: During the lookup of a name
I ran into my first compiler that changes the lvalue passed to ::delete, but

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.