mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Add context_base::arg()
This commit is contained in:
@ -1017,7 +1017,8 @@ class context_base {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
basic_parse_context<char_type> &parse_context() { return parse_context_; }
|
basic_parse_context<char_type> &parse_context() { return parse_context_; }
|
||||||
basic_format_args<Context> args() const { return args_; }
|
basic_format_args<Context> args() const { return args_; } // DEPRECATED!
|
||||||
|
basic_format_arg<Context> arg(unsigned id) const { return args_.get(id); }
|
||||||
|
|
||||||
internal::error_handler error_handler() {
|
internal::error_handler error_handler() {
|
||||||
return parse_context_.error_handler();
|
return parse_context_.error_handler();
|
||||||
|
Reference in New Issue
Block a user