Implements the range-default-formatter specialization range_format::map.
Implements parts of
- P2286R8 Formatting Ranges
- P2585R0 Improving default container formatting
Depends on D140653
Paths
| Differential D140801
[libc++][format] range-default-formatter for map ClosedPublic Authored by Mordante on Dec 31 2022, 4:30 AM.
Details
Summary Implements the range-default-formatter specialization range_format::map. Implements parts of
Depends on D140653
Diff Detail
Event TimelineMordante added a child revision: D141195: [libc++][format] range-default-formatter for set..Jan 7 2023, 4:13 AM ldionne added inline comments.
This revision is now accepted and ready to land.Jan 17 2023, 9:11 AM This revision was landed with ongoing or failed builds.Jan 19 2023, 11:56 AM Closed by commit rGaf5fc4b4d827: [libc++][format] range-default-formatter for map (authored by Mordante). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 490621 libcxx/docs/Status/FormatPaper.csv
libcxx/include/__format/range_default_formatter.h
libcxx/include/__format/range_formatter.h
libcxx/test/std/containers/container.adaptors/container.adaptors.format/format.pass.cpp
libcxx/test/std/containers/container.adaptors/container.adaptors.format/parse.pass.cpp
libcxx/test/std/containers/sequences/vector.bool/vector.bool.fmt/format.pass.cpp
libcxx/test/std/containers/sequences/vector.bool/vector.bool.fmt/parse.pass.cpp
libcxx/test/std/utilities/format/format.formattable/concept.formattable.compile.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.fmtmap/format.functions.format.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.fmtmap/format.functions.tests.h
libcxx/test/std/utilities/format/format.range/format.range.fmtmap/format.functions.vformat.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.fmtmap/format.pass.cpp
libcxx/test/std/utilities/format/format.range/format.range.fmtmap/parse.pass.cpp
libcxx/test/std/utilities/format/format.tuple/format.pass.cpp
libcxx/test/std/utilities/format/format.tuple/parse.pass.cpp
libcxx/test/std/utilities/format/format.tuple/set_brackets.pass.cpp
libcxx/test/std/utilities/format/format.tuple/set_separator.pass.cpp
libcxx/test/support/format.functions.common.h
|
Can we add tests with simple custom associative containers for sets and maps? You can e.g. wrap std::map with a custom type and only provide the right typedefs + basic functions to see if everything works.