We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part of #134
Combine several modifiers to print csl::ag::concepts::aggregate in a specific ways
csl::ag::concepts::aggregate
indexes...
csl::typeinfo::typename...
indented_view
fmt::println("{}", csl::ag::io::join<indexed, typenamed>(value)); // aggregate_join_view<indexed_t, typenamed_t>
Requires proper dispatching to underlying formatters.
compound_view<views...>
template <typename T> struct meta_infos : std::type_identity<T> {}; template <typename T> struct meta_infos_range : std::type_identity<T> { std::size_t index = 0; }; template <typename T, std::size_t index> struct meta_infos_tuple : std::type_identity<T> { constexpr inline static std::size_t index = index; };
parse
indented<style>
fmt::formatters
range
tuple_like
{:n}
{:c}
{:i}
constexpr string
constexpr std::basic_string(count, char)
so for instance:
struct A{ int i = 42; char c = 'c'; }; struct B{ bool b = true; A a; }; fmt::println("{:n}", B{}); // { true42c } fmt::println("{:c}", B{}); // { true, { 42, c } } fmt::println("{:i}", B{}); // { // true, // { // 42, // c // } // }
The text was updated successfully, but these errors were encountered:
GuillaumeDua
No branches or pull requests
Part of #134
Motivation
Combine several modifiers to print
csl::ag::concepts::aggregate
in a specific waysindexes...
of each elementcsl::typeinfo::typename...
indented_view
? (depth-based indentation)Requires proper dispatching to underlying formatters.
POCs/Design
compound_view<views...>
Question: infos-dedicated type.s dispatch ?
Question: should style information be part of the
parse
instead ?indented<style>
fmt::formatters
ofrange
andtuple_like
Details/examples
{:n}
: none{:c}
: compact (default){:i}
: indented -> requiresconstexpr string
-constexpr std::basic_string(count, char)
so for instance:
The text was updated successfully, but these errors were encountered: