Skip to content

Subsection nesting in [containers.adaptors] is inconsistent #355

@jwakely

Description

@jwakely

23.6 Container adaptors [container.adaptors]
23.6.1 In general [container.adaptors.general]
23.6.2 Header <queue> synopsis [queue.syn]
23.6.3 Class template queue [queue]
23.6.4 Class template priority_queue [priority.queue]
23.6.5 Class template stack [stack]
23.6.5.1 Header <stack> synopsis [stack.syn]

Why is [queue.syn] an rSec2 but [stack.syn] is an rSec3?
Why is the [stack.syn] header synopsis nested below the class that is defined in that header?

I think it would be more consistent to change [stack.syn] to rSec2 and either move it to come immediately after [queue.syn] so both synopses come before the class template definitions (matching how it's done in 23.4 [associative] and 23.5 [unord]) or else move it before [stack].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions