mirror of
https://github.com/fmtlib/fmt.git
synced 2024-09-15 15:13:22 +00:00
Usage -> Get Started
This commit is contained in:
parent
966a1b3d44
commit
0a555818d7
@ -45,7 +45,7 @@ surrounded by braces `{}`. The fields are replaced with formatted arguments
|
|||||||
in the resulting string. [`fmt::format_string`](#format_string) is a format
|
in the resulting string. [`fmt::format_string`](#format_string) is a format
|
||||||
string which can be implicitly constructed from a string literal or a
|
string which can be implicitly constructed from a string literal or a
|
||||||
`constexpr` string and is checked at compile time in C++20. To pass a runtime
|
`constexpr` string and is checked at compile time in C++20. To pass a runtime
|
||||||
format string wrap it in [fmt::runtime](#runtime).
|
format string wrap it in [`fmt::runtime`](#runtime).
|
||||||
|
|
||||||
*args* is an argument list representing objects to be formatted.
|
*args* is an argument list representing objects to be formatted.
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# Usage
|
# Get Started
|
||||||
|
|
||||||
To use the {fmt} library, add `fmt/core.h`, `fmt/format.h`, `fmt/format-inl.h`,
|
To use the {fmt} library, add `fmt/core.h`, `fmt/format.h`, `fmt/format-inl.h`,
|
||||||
`src/format.cc` and optionally other headers from a [release archive](
|
`src/format.cc` and optionally other headers from a [release archive](
|
||||||
https://github.com/fmtlib/fmt/releases/latest) or the [git repository](
|
https://github.com/fmtlib/fmt/releases/latest) or the [git repository](
|
||||||
https://github.com/fmtlib/fmt) to your project. Alternatively, you can
|
https://github.com/fmtlib/fmt) to your project. Alternatively, you can
|
||||||
[build the library with CMake](#building).
|
build the library with CMake.
|
||||||
|
|
||||||
## Building the Library {#building}
|
## Building the Library
|
||||||
|
|
||||||
The included [CMake build
|
The included [CMake build
|
||||||
script](https://github.com/fmtlib/fmt/blob/master/CMakeLists.txt) can be
|
script](https://github.com/fmtlib/fmt/blob/master/CMakeLists.txt) can be
|
@ -36,7 +36,7 @@ plugins:
|
|||||||
default_handler: cxx
|
default_handler: cxx
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
- Usage: usage.md
|
- Get Started: get-started.md
|
||||||
- API: api.md
|
- API: api.md
|
||||||
- Syntax: syntax.md
|
- Syntax: syntax.md
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user