Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
52fcef1e
Commit
52fcef1e
authored
Apr 08, 2018
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs
parent
7d28674d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/api.rst
doc/api.rst
+4
-4
No files found.
doc/api.rst
View file @
52fcef1e
...
...
@@ -59,7 +59,7 @@ Named arguments
Argument lists
--------------
.. doxygenfunction:: fmt::make_args(const Args&...)
.. doxygenfunction:: fmt::make_
format_
args(const Args&...)
.. doxygenclass:: fmt::format_arg_store
:members:
...
...
@@ -197,7 +197,7 @@ allocator::
inline custom_string format(custom_allocator alloc,
fmt::string_view format_str,
const Args & ... args) {
return vformat(alloc, format_str, fmt::make_args(args...));
return vformat(alloc, format_str, fmt::make_
format_
args(args...));
}
Custom formatting of built-in types
...
...
@@ -213,7 +213,7 @@ custom argument formatter class::
// with the ``x`` format specifier.
class custom_arg_formatter : public arg_formatter {
public:
custom_arg_formatter(fmt::context &ctx, fmt::format_specs &spec)
custom_arg_formatter(fmt::
format_
context &ctx, fmt::format_specs &spec)
: arg_formatter(ctx, spec) {}
using arg_formatter::operator();
...
...
@@ -236,7 +236,7 @@ custom argument formatter class::
template <typename ...Args>
inline std::string custom_format(
fmt::string_view format_str, const Args &... args) {
return custom_vformat(format_str, fmt::make_args(args...));
return custom_vformat(format_str, fmt::make_
format_
args(args...));
}
std::string s = custom_format("{:x}", -42); // s == "ffffffd6"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment