[contents] (original) (raw)
16 Library introduction [library]
16.4 Library-wide requirements [requirements]
16.4.2 Library contents and organization [organization]
16.4.2.2 Library contents [contents]
The C++ standard library provides definitions for the entities and macros described in the synopses of the C++ standard library headers ([headers]), unless otherwise specified.
All library entities exceptoperator newandoperator deleteare defined within the namespacestdor namespaces nested within namespacestd.142
It is unspecified whether names declared in a specific namespace are declared directly in that namespace or in an inline namespace inside that namespace.143
Whenever an unqualified name other thanswap, make_error_code, make_error_condition,from_stream, orsubmdspan_mappingis used in the specification of a declaration Din [support] through [exec] or [depr], its meaning is established as-if by performing unqualified name lookup ([basic.lookup.unqual]) in the context of D.
[Note 1:
Argument-dependent lookup is not performed.
— _end note_]
Similarly, the meaning of a qualified-id is established as-if by performing qualified name lookup ([basic.lookup.qual]) in the context of D.
[Example 1:
The reference to is_array_v in the specification of std::to_array ([array.creation]) refers to ::std::is_array_v.
— _end example_]
The meaning of the unqualified name swap is established in an overload resolution context for swappable values ([swappable.requirements]).
The meanings of the unqualified namesmake_error_code, make_error_condition,from_stream, andsubmdspan_mappingare established as-if by performing argument-dependent lookup ([basic.lookup.argdep]).