This implements the struct __format_arg_store and its dependencies:
- the class basic_format_arg,
- the class basic_format_args,
- the class basic_format_context,
- the function make_format_args,
- the function make_format_args,
- the function visit_format_arg,
- several Standard required typedefs.
The following parts will be implemented in a later patch:
- the child class basic_format_arg::handle,
- the function basic_format_arg::basic_format_arg(const T* p).
The following extension has been implemented:
- the class basic_format_arg supports __[u]int128_t when there's libc++ support for 128 bit integrals.
Implements parts of:
- P0645 Text Formatting
Completes:
- LWG3371 visit_format_arg and make_format_args are not hidden friends
Note it's possible to make the code more efficient, but for now the focus
is to get a Standard conforming implementation. Improving the QoI will be
done later.
@ldionne If you agree with this approach I'll move it to D93166, which then should fix the issues @mehdi_amini has using clang 8.