SiddiqSoft.format-helpers
1.2.1
dotnet add package SiddiqSoft.format-helpers --version 1.2.1
NuGet\Install-Package SiddiqSoft.format-helpers -Version 1.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SiddiqSoft.format-helpers" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SiddiqSoft.format-helpers" Version="1.2.1" />
<PackageReference Include="SiddiqSoft.format-helpers" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SiddiqSoft.format-helpers --version 1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SiddiqSoft.format-helpers, 1.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SiddiqSoft.format-helpers@1.2.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SiddiqSoft.format-helpers&version=1.2.1
#tool nuget:?package=SiddiqSoft.format-helpers&version=1.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
format-helpers
C++20 std::format helpers
API
Usage
include "siddiqsoft/formatters.hpp"
..
std::atomic_bool b{false};
std::cout << std::format( "b contains {}\n", b);
std::wcout << std::format(L"b contains {}\n", b);
Output
false
false
| Type | Comment |
|---|---|
std::atomic<T><br/>std::atomic_int<br/>std::atomic_uint<br/>std::atomic_uint64_t<br/>std::atomic_int64_t<br/>std::atomic_bool |
Convenience helpers so you don't have to .load() when using std::format. |
std::exception |
Support for both char and wchar_t destinations. |
std::runtime_error |
Support for both char and wchar_t destinations. |
nlohmann::json |
If the library nlohmann.json is present the source json object is serialized and the output is converted to std::wstring as needed. |
Dependencies
None. However, if you're using the nlohmann.json library then we will enable the serializers for that library.
- This library does not use any Windows-specific code. However, use Visual Studio 2019 v16.11.2 or newer as support for
<format>is not present for GCC or Clang! - On Windows with VisualStudio, use the Nuget package!
- Make sure you use
c++latestas the<format>is no longer in thec++20option pending ABI resolution.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.