std::range_format

From cppreference.com
< cpp‎ | utility‎ | format
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)
 
Formatting library
Formatting functions
(C++20)
(C++20)
(C++20)
(C++20)
Formatting concepts
Formatter
(C++20)
range_format
(C++23)
Formatting arguments
(C++20) (deprecated in C++26)
Format error
 
Defined in header <format>
enum class range_format {

    disabled,
    map,
    set,
    sequence,
    string,
    debug_string

};
(since C++23)

Specifies how a range should be formatted.

Constant Explanation
disabled disallows range default formatter to format range
map allows to format range as map representation with modified brackets "{", "}" and separator ": " for underlying pair-like types in the following format:
{ key-1 : value-1, ..., key-n : value-n }
set allows to format range as set representation with modified brackets "{" and "}" in the following format:
{ key-1, ..., key-n }
sequence allows to format range as sequence representation with default brackets "[", "]" and separator ", " in the following format:
[ element-1, ..., element-n ]
string allows to format range as string
debug_string allows to format range as escaped string

See also

(C++20)
class template that defines formatting rules for a given type
(class template)
selects a suited std::range_format for a range
(variable template)